Hi Megh, 

Thanks for the response. 

Yes, netstat -anp shows thats collector connects to the another server. 

Reg TimedOutException , Let me recheck my cassandra cluster 
configuration/setup. 

Thanks 
suresh. 


From: "Megh Bhatt" <[email protected]> 
To: "Suresh Kumar S" <[email protected]> 
Cc: [email protected] 
Sent: Tuesday, November 29, 2016 9:52:02 AM 
Subject: Re: [opencontrail-dev] cassandra server switchover 

In 2.21 the architecture is different, collector will establish one connection 
to one cassandra server per generator. If that fails, it will retry the next 
server. This is evident from the collector logs. It seems that you are getting 
TimedOutException which suggests your single remaining cassandra node might be 
getting overloaded. 

If you check using netstat -anp for contrail-collector pid you should be seeing 
connections to the 10.10.10.5 cassandra node. 

Thanks 

Megh 




On Nov 29, 2016, at 12:04 AM, Suresh Kumar S < 
[email protected] > wrote: 

Hi Megh, 

My scenario is very simple, 

My setup : Devstack - Mitaka 
Contrail : 2.21.x 

I have configured the cassandra cluster with two nodes, and specified those in 
the contrail-collector.conf file 

cloud@contrail:/etc/cassandra$ cat /etc/contrail/contrail-collector.conf 

[DEFAULT] 
log_local = 1 
log_level = SYS_DEBUG 
cassandra_server_list = 10.10.10.5:9160 10.10.10.4:9160 
hostname = contrail 
hostip = 10.10.10.6 

[DISCOVERY] 
port = 5998 
server = 10.10.10.6 
cloud@contrail:/etc/cassandra$ 

Collector establishes the communication with 10.10.10.4, and works well. 

I purposefully down the 10.10.10.4 cassandra server. I expect contrail-control 
continue to work with 10.10.10.5 cassandra server. 
But contrail-control keeps trying to connect with 10.10.10.4 and fails to 
connect. 


Note: 
1. Collector establishes the communication with only one server(10.10.10.4) out 
of two mentioned. 


collector logs are attached for debugging. 

Thanks 
suresh 


From: "Megh Bhatt" < [email protected] > 
To: "Suresh Kumar S" < [email protected] > 
Cc: [email protected] 
Sent: Tuesday, November 29, 2016 8:48:20 AM 
Subject: Re: [opencontrail-dev] cassandra server switchover 

Hi Suresh, 
cassandra supports active/active or cluster consisting of multiple active nodes 
and hence we can provide list of IP addresses to contrail-collector. 
contrail-collector simultaneously connects to all the cassandra servers and 
will handle cassandra server failures. 

Thanks 

Megh 


BQ_BEGIN

On Nov 28, 2016, at 11:43 PM, Suresh Kumar S < 
[email protected] > wrote: 

Hi, 

In the contrail-collector config file, we can specify multiple cassandra 
servers. 
What is the purpose of it ? 


contrail-collecter.conf snippet 

# IP address and port to be used to connect to cassandra. 
# Multiple IP:port strings separated by space can be provided 
# cassandra_server_list=127.0.0.1:9042 

Does contrail support server switchover, I mean when the current server is not 
reachable, will it switch to the new server(mentioned in the config) ? 

Thanks 
suresh 
_______________________________________________ 
Dev mailing list 
[email protected] 
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org 





<collector.log> 

BQ_END



_______________________________________________
Dev mailing list
[email protected]
http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org

Reply via email to