On Thu, 24 Oct 2013, [email protected] wrote:

Hi,

I am using Pacemaker to configure a 2 node cluster.
The failover seems to be working fine but I would also like the data to go to 
both the nodes depending on the load
(i.e. on a round robin basis or transfer the data to another node when load is 
increasing).

I am using the following configuration. The data seems to be going only to a 
single node when I send from multiple sources.
Can someone suggest any additional changes that is required for the data to be 
load balanced in both the nodes.

what is the traffic that you are trying to balance? Is it all from one server? Is it all in one connection?

If it's all in a single TCP connection, then you cannot balance it across multiple machines. However, depending on the details of the traffic, you may be able to get the sender to send things in bursts. For example, rsyslog has the parameter 'rebindinterval' that has it disconnect and reconnect every N messages. Since the reconnect increments the source port, this has the effect of sending N messages to one machine and then N messages to the next machine (usually anyway, it all depends on the hash details :-) This is 'good enough' for load balancing syslog messages.

David Lang

vagrant@sendervm:~$ sudo crm configure show
node receivervm
node sendervm
primitive p_vip ocf:heartbeat:IPaddr2 \
       params ip="10.114.90.251" cidr_netmask="24" nic="eth1" 
clusterip_hash="sourceip-sourceport" \
       op start interval="0s" timeout="60s" \
       op monitor interval="5s" timeout="20s" \
       op stop interval="0s" timeout="60s" \
       meta migration-threshold="1" failure-timeout="60s"
property $id="cib-bootstrap-options" \
       dc-version="1.1.6-9971ebba4494012a93c03b40a2c58ec0eb60f50c" \
       cluster-infrastructure="cman" \
       stonith-enabled="false" \
       no-quorum-policy="ignore" \
       default-resource-stickiness="0"
rsc_defaults $id="rsc-options" \
       migration_threshold="1"
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to