Editing
LoadBalancer External Sites: Apache mod balancer
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=Configs= ==corosync== <source> #/etc/corosync/corosync.conf totem { version: 2 token: 5000 token_retransmits_before_loss_const: 20 join: 1000 consensus: 7500 vsftype: none max_messages: 20 secauth: on threads: 0 clear_node_high_bit: yes interface { ringnumber: 0 bindnetaddr: 172.16.50.10 mcastaddr: 226.94.50.231 mcastport: 5405 } } logging { fileline: off to_syslog: yes to_stderr: no syslog_facility: daemon debug: on timestamp: on } amf { mode: disabled } aisexec { # Run as root - this is necessary to be able to manage resources with Pacemaker user: root group: root } </source> <source> #/etc/corosync/service.d/pcmk service { # Load the Pacemaker Cluster Resource Manager name: pacemaker ver: 1 } </source> ==Pacemaker== * use crm to modify/manage config * save config: crm configure save <FILENAME> <source> cat /root/crm.20120327-1441.crm node modbalancer1 node modbalancer2 primitive httpd lsb:httpd \ op monitor interval="10" timeout="30" start-delay="10" \ op start interval="0" timeout="120" \ op stop interval="0" timeout="120" primitive p_ip-10.0.0.104 ocf:heartbeat:IPaddr \ params ip="10.0.0.104" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.105 ocf:heartbeat:IPaddr \ params ip="10.0.0.105" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.106 ocf:heartbeat:IPaddr \ params ip="10.0.0.106" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.107 ocf:heartbeat:IPaddr \ params ip="10.0.0.107" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.108 ocf:heartbeat:IPaddr \ params ip="10.0.0.108" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.109 ocf:heartbeat:IPaddr \ params ip="10.0.0.109" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.110 ocf:heartbeat:IPaddr \ params ip="10.0.0.110" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" primitive p_ip-10.0.0.111 ocf:heartbeat:IPaddr \ params ip="10.0.0.111" cidr_netmask="32" nic="eth2" \ op monitor interval="2s" clone clone_httpd httpd colocation c_10.0.0.104_on_http inf: p_ip-10.0.0.104 clone_httpd colocation c_10.0.0.105_on_http inf: p_ip-10.0.0.105 clone_httpd colocation c_10.0.0.106_on_http inf: p_ip-10.0.0.106 clone_httpd colocation c_10.0.0.107_on_http inf: p_ip-10.0.0.107 clone_httpd colocation c_10.0.0.108_on_http inf: p_ip-10.0.0.108 clone_httpd colocation c_10.0.0.109_on_http inf: p_ip-10.0.0.109 clone_httpd colocation c_10.0.0.110_on_http inf: p_ip-10.0.0.110 clone_httpd colocation c_10.0.0.111_on_http inf: p_ip-10.0.0.111 clone_httpd order o_httpd_before_10.0.0.104 inf: clone_httpd p_ip-10.0.0.104 order o_httpd_before_10.0.0.105 inf: clone_httpd p_ip-10.0.0.105 order o_httpd_before_10.0.0.106 inf: clone_httpd p_ip-10.0.0.106 order o_httpd_before_10.0.0.107 inf: clone_httpd p_ip-10.0.0.107 order o_httpd_before_10.0.0.108 inf: clone_httpd p_ip-10.0.0.108 order o_httpd_before_10.0.0.109 inf: clone_httpd p_ip-10.0.0.109 order o_httpd_before_10.0.0.110 inf: clone_httpd p_ip-10.0.0.110 order o_httpd_before_10.0.0.111 inf: clone_httpd p_ip-10.0.0.111 property $id="cib-bootstrap-options" \ dc-version="1.1.5-1.1.el5-01e86afaaa6d4a8c4836f68df80ababd6ca3902f" \ cluster-infrastructure="openais" \ expected-quorum-votes="2" \ stonith-enabled="false" \ no-quorum-policy="ignore" \ last-lrm-refresh="1364418010" \ placement-strategy="balanced" \ cluster-recheck-interval="60s" rsc_defaults $id="rsc-options" \ failure-timeout="60s" </source>
Summary:
Please note that all contributions to RARForge may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RARForge:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Home
All Pages
All Files
View Categories
Recent changes
Random page
Edit this menu
Tools
What links here
Related changes
Special pages
Page information