HA proxy load balancing issue with contrail analytics API

Bug #1678703 reported by vijaya kumar shankaran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
New
High
Sundaresan Rajangam
R3.1
New
Undecided
Sundaresan Rajangam
R3.2
New
Undecided
Sundaresan Rajangam

Bug Description

Customer has configured 9 node setup in which
a. 3 nodes are hosting
Control, config, database, webui
b. 1 nodes for openstack
c. 3 compute nodes and 2 TSN nodes.
HA proxy is configured for loadbalancing with Roundrobin.
Haproxy.cfg
backend contrail-analytics-api
    option nolinger
    balance roundrobin
    option tcp-check
    tcp-check connect port 6379
    default-server error-limit 1 on-error mark-down
    server 10.204.74.215 10.204.74.215:9081 check inter 2000 rise 2 fall 3
    server 10.204.74.216 10.204.74.216:9081 check inter 2000 rise 2 fall 3
    server 10.204.74.217 10.204.74.217:9081 check inter 2000 rise 2 fall 3

From the above file haproxy checks with the redis server for its availability and not for contrail-analytics-api causing for the timeout on one of the node when contrail-analytics-api is not running.

This configuration is removed in 3.2 and later customer want a fix in 3.1 as they will be migrating to 3.1.
1. Setup 3 node controller cluster with haproxy load-balancer.
2. Shutdown contrail-analytics-api on one controller node.
3. Send Analytics API request three times. One request should be timed out.

root@api1:/opt/contrail/utils# curl http://10.204.74.220:8081/analytics/uves/vrouters -s ; echo ""
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

Tags: analytics ha
Revision history for this message
vijaya kumar shankaran (vijayks) wrote :
information type: Proprietary → Public
Jeba Paulaiyan (jebap)
tags: added: analytics ha
Revision history for this message
Raj Reddy (rajreddy) wrote :

may be a dup of the PR you were working

Changed in juniperopenstack:
assignee: nobody → Sundaresan Rajangam (srajanga)
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.