Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-04-03 Thread Nikhil Utane
Thank you Lars. Yes, subscribing will be better. Will look into it. We have already started working on reducing the data that goes into CIB file. -Regards Nikhil On Mon, Apr 3, 2017 at 6:41 PM, Lars Ellenberg wrote: > On Mon, Apr 03, 2017 at 03:44:21PM +0530, Nikhil

Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-04-03 Thread Lars Ellenberg
On Mon, Apr 03, 2017 at 03:44:21PM +0530, Nikhil Utane wrote: > Here's the snapshot. As seen below, the messages are coming at more than a > second frequency. > I checked that the cib.xml file was not updated (no change to timestamp of > file) > Then i took tcpdump and did not see any message

Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-04-03 Thread Nikhil Utane
Here's the snapshot. As seen below, the messages are coming at more than a second frequency. I checked that the cib.xml file was not updated (no change to timestamp of file) Then i took tcpdump and did not see any message other than keep-alives. Is the cib process looping incorrectly? Can share

Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-04-03 Thread Nikhil Utane
Ken, The CIB file is not being updated that often. I took a packet capture and don't see the node sending any message to other nodes (other than keep-alives). What then explains these messages coming every second? -Regards Nikhil On Sat, Apr 1, 2017 at 1:37 AM, Ken Gaillot

Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-03-31 Thread Ken Gaillot
On 03/31/2017 06:44 AM, Nikhil Utane wrote: > We are seeing this log in pacemaker.log continuously. > > Mar 31 17:13:01 [6372] 0005B932ED72cib: info: > crm_compress_string: Compressed 436756 bytes into 14635 (ratio 29:1) in > 284ms > > This looks to be the reason for high CPU. What

Re: [ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-03-31 Thread Nikhil Utane
We are seeing this log in pacemaker.log continuously. Mar 31 17:13:01 [6372] 0005B932ED72cib: info: crm_compress_string: Compressed 436756 bytes into 14635 (ratio 29:1) in 284ms This looks to be the reason for high CPU. What does this log indicate? -Regards Nikhil On Fri, Mar 31,

[ClusterLabs] Syncing data and reducing CPU utilization of cib process

2017-03-31 Thread Nikhil Utane
Hi, In our current design (which we plan to improve upon) we are using the CIB file to synchronize information across active and standby nodes. Basically we want the standby node to take the configuration that was used by the active node so we are adding those as resource attributes. This ensures