On Thu, Jul 10, 2008 at 09:26, Ehlers, Kolja <[EMAIL PROTECTED]> wrote: > Hello, > > I still have one group with an apache and one virtual ip resource in it, > also I have 9 single tomcat clones. When heartbeat starts up some tomcat > instances keep timeing out even when I raised the start timeout to 120s. > What I am trying to archieve now is that only one tomcat starts up at a > time. For that I have inserted the following order contraints but it is not > working: > > <constraints> > <rsc_order id="order-1" from="tomcat_22" to="tomcat_21" score="0"/> > <rsc_order id="order-2" from="tomcat_22sdb" to="tomcat_22" score="0"/> > <rsc_order id="order-3" from="tomcat_30" to="tomcat_22sdb" score="0"/> > <rsc_order id="order-4" from="tomcat_34" to="tomcat_30" score="0"/> > <rsc_order id="order-5" from="tomcat_35" to="tomcat_34" score="0"/> > <rsc_order id="order-6" from="tomcat_36" to="tomcat_35" score="0"/> > <rsc_order id="order-7" from="tomcat_37" to="tomcat_36" score="0"/> > <rsc_order id="order-8" from="tomcat_38" to="tomcat_37" score="0"/> > </constraints> > > What I still have not found out is: does the from and the to tag require the > id of the clone or of the resource itself?
Always use the ID of the clone. > Also does this only mean that > they start up sequentially or does heartbeat actually wait until it recieves > a OCF_SUCCESS or FAILED and then starts the next resource. In my > configuration it is not waiting for an RC to fire up the next resource, Because no resource called tomcat_38 (or the other variations) exists. Use the clone ID and it will work. > but > this is what I want. > > I have tryed with score=0 and INFINITY though I dont want all tomcats to > stop if just one fails > > <configuration> > <crm_config> > <cluster_property_set id="cib-bootstrap-options"> > <attributes> > <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" > value="2.1.3-node: a3184d5240c6e7032aef9cce6e5b7752ded544b3"/> > <nvpair id="cib-bootstrap-options-last-lrm-refresh" > name="last-lrm-refresh" value="1215671772"/> > <nvpair id="cib-bootstrap-options-symmetric-cluster" > name="symmetric-cluster" value="TRUE"/> > <nvpair id="cib-bootstrap-options-default-resource-stickiness" > name="default-resource-stickiness" value="INFINITY"/> > </attributes> > </cluster_property_set> > </crm_config> > <nodes> > <node id="3a325e23-2184-46ed-9e88-42a11f28c2be" uname="www1test" > type="normal"/> > <node id="5e0f97b7-6780-4487-baf9-6c36500b1276" uname="www2test" > type="normal"/> > </nodes> > <resources> > <group id="IP_and_Apache"> > <primitive class="ocf" id="IPaddr_192_168_11_25" > provider="heartbeat" type="IPaddr"> > <operations> > <op id="IPaddr_192_168_11_25_mon" interval="5s" name="monitor" > timeout="120s"/> > <op id="IPaddr_192_168_11_25_attr_1" name="start" interval="0" > timeout="120s"/> > </operations> > <instance_attributes id="IPaddr_192_168_11_25_inst_attr"> > <attributes> > <nvpair id="IPaddr_192_168_11_25_attr_0" name="ip" > value="192.168.11.25"/> > </attributes> > </instance_attributes> > </primitive> > <primitive class="ocf" provider="heartbeat" type="apache" > id="apache_2"> > <operations> > <op id="apache_2_start" name="start" interval="0" > timeout="120s"/> > <op id="apache_2_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="apache_2_inst_attr"> > <attributes> > <nvpair id="apache_2_config" name="configfile" > value="/opt/apache2/conf/httpd.conf"/> > <nvpair id="apache_2-httpd" name="httpd" > value="/opt/apache2/bin/httpd"/> > <nvpair id="apache_2-statusurl" name="statusurl" > value="http://localhost/server-status"/> > </attributes> > </instance_attributes> > </primitive> > </group> > <clone id="tomcat_21_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="0fb64339-fcd0-4b70-9201-b873224d7f97"> > <attributes> > <nvpair name="clone_max" value="2" > id="0fc53c45-0971-41ca-9a73-43912de5dd47"/> > <nvpair name="clone_node_max" value="1" > id="10e0ee9d-ce15-426f-b090-97774b12c10f"/> > </attributes> > </instance_attributes> > <primitive class="ocf" id="tomcat_21" provider="heartbeat" > type="tomcat"> > <operations> > <op id="tomcat_21_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_21_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_21"> > <attributes> > <nvpair id="tomcat_21-java_home" name="java_home" > value="/usr/lib/java"/> > <nvpair id="tomcat_21-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5"/> > <nvpair id="tomcat_21-statusurl" name="statusurl" > value="http://localhost:8085/icrf2/handler/perform_internal_test"/> > <nvpair id="tomcat_21-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5/logs/catalina.pid"/> > <nvpair id="tomcat_21-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5/startup.log"/> > <nvpair id="tomcat_21-name" name="tomcat_name" > value="tomcat_21"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_22_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="72e1349d-a7fe-4f4f-9a9e-e822f41d6843"> > <attributes> > <nvpair name="clone_max" value="2" > id="9ca0240b-574b-43f6-9db6-0daced3560eb"/> > <nvpair name="clone_node_max" value="1" > id="ba701374-5515-4618-9969-149f17bea798"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_22"> > <operations> > <op id="tomcat_22_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_22_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_22"> > <attributes> > <nvpair id="tomcat_22-java_home" name="java_home" > value="/usr/lib/java"/> > <nvpair id="tomcat_22-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF2.2"/> > <nvpair id="tomcat_22-statusurl" name="statusurl" > value="http://localhost:8086/icrf22/handler/perform_internal_test"/> > <nvpair id="tomcat_22-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF2.2/logs/catalina.pid"/> > <nvpair id="tomcat_22-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.22/startup.log"/> > <nvpair id="tomcat_22-name" name="tomcat_name" > value="tomcat_22"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_22sdb_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="e0da2a80-f200-44a8-b259-fa64c989679f"> > <attributes> > <nvpair name="clone_max" value="2" > id="300bee5e-b49b-45ef-9c49-c26965903e2a"/> > <nvpair name="clone_node_max" value="1" > id="667263b5-1794-41c3-9229-b64a599bb074"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_22sdb"> > <operations> > <op id="tomcat_22sdb_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_22sdb_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_22sdb"> > <attributes> > <nvpair id="tomcat_22sdb-java_home" name="java_home" > value="/usr/lib/java"/> > <nvpair id="tomcat_22sdb-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF2.2_SDB2"/> > <nvpair id="tomcat_22sdb-statusurl" name="statusurl" > value="http://localhost:9086/icrf22sdb2/handler/perform_internal_test"/> > <nvpair id="tomcat_22sdb-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF2.2_SDB2/logs/catalina.pid"/> > <nvpair id="tomcat_22sdb-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.22_sdb2/startup.log"/> > <nvpair id="tomcat_22sdb-name" name="tomcat_name" > value="tomcat_22sdb"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_30_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="d06a2c36-95a6-476a-a3fe-b192215fed9e"> > <attributes> > <nvpair name="clone_max" value="2" > id="ac4762a8-987f-40c3-9f23-235104033db7"/> > <nvpair name="clone_node_max" value="1" > id="a93ed054-d3ca-4c38-95fe-208c3d3a7569"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_30"> > <operations> > <op id="tomcat_30_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_30_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_30"> > <attributes> > <nvpair id="tomcat_30-java_home" name="java_home" > value="/opt/jdk1.5.0_05_icrf30"/> > <nvpair id="tomcat_30-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.0"/> > <nvpair id="tomcat_30-statusurl" name="statusurl" > value="http://localhost:8087/icrf30/handler/perform_internal_test"/> > <nvpair id="tomcat_30-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.0/logs/catalina.pid"/> > <nvpair id="tomcat_30-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.30/startup.log"/> > <nvpair id="tomcat_30-name" name="tomcat_name" > value="tomcat_30"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_34_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="04c9b9e5-aabf-4283-b1ab-445953ce6289"> > <attributes> > <nvpair name="clone_max" value="2" > id="066a2e1b-41e4-44e7-b736-fcc8ab34ca40"/> > <nvpair name="clone_node_max" value="1" > id="4148f18f-2b62-4b5c-85a6-e79cf3691a5b"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_34"> > <operations> > <op id="tomcat_34_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_34_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_34"> > <attributes> > <nvpair id="tomcat_34-java_home" name="java_home" > value="/opt/jdk1.5"/> > <nvpair id="tomcat_34-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.4"/> > <nvpair id="tomcat_34-statusurl" name="statusurl" > value="http://localhost:8287/icrf34/handler/perform_internal_test"/> > <nvpair id="tomcat_34-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.4/logs/catalina.pid"/> > <nvpair id="tomcat_34-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.34/startup.log"/> > <nvpair id="tomcat_34-name" name="tomcat_name" > value="tomcat_34"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_35_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="cf7e733c-1113-493f-b4bc-ba3e786380fe"> > <attributes> > <nvpair name="clone_max" value="2" > id="d1b55f7a-ed47-4967-bc7b-06964359e1e5"/> > <nvpair name="clone_node_max" value="1" > id="8e43e2a0-f1c9-4f9c-9a2f-b387936bde64"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_35"> > <operations> > <op id="tomcat_35_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_35_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_35"> > <attributes> > <nvpair id="tomcat_35-java_home" name="java_home" > value="/opt/jdk1.5"/> > <nvpair id="tomcat_35-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.5"/> > <nvpair id="tomcat_35-statusurl" name="statusurl" > value="http://localhost:8387/icrf35/handler/login"/> > <nvpair id="tomcat_35-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.5/logs/catalina.pid"/> > <nvpair id="tomcat_35-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.35/startup.log"/> > <nvpair id="tomcat_35-name" name="tomcat_name" > value="tomcat_35"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_36_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="8cee9271-7a3b-43f8-be27-b9daba4471a1"> > <attributes> > <nvpair name="clone_max" value="2" > id="94ac389f-269f-4bb9-bd87-356ac8e84540"/> > <nvpair name="clone_node_max" value="1" > id="076679c8-800c-41d4-93cf-c824f7e835fa"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_36"> > <operations> > <op id="tomcat_36_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_36_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_36"> > <attributes> > <nvpair id="tomcat_36-java_home" name="java_home" > value="/opt/jdk1.5"/> > <nvpair id="tomcat_36-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.6"/> > <nvpair id="tomcat_36-statusurl" name="statusurl" > value="http://localhost:8487/icrf36/handler/login"/> > <nvpair id="tomcat_36-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.6/logs/catalina.pid"/> > <nvpair id="tomcat_36-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.36/startup.log"/> > <nvpair id="tomcat_36-name" name="tomcat_name" > value="tomcat_36"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_37_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="c7fcc167-ed7a-4040-beaa-6a865a878e69"> > <attributes> > <nvpair name="clone_max" value="2" > id="706465a7-423b-4e4f-860a-59cbe93ebf2a"/> > <nvpair name="clone_node_max" value="1" > id="ad9fe283-166f-43b2-af2c-a8f21048b4c6"/> > </attributes> > </instance_attributes> > <primitive class="ocf" provider="heartbeat" type="tomcat" > id="tomcat_37"> > <operations> > <op id="tomcat_37_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_37_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_37"> > <attributes> > <nvpair id="tomcat_37-java_home" name="java_home" > value="/opt/jdk1.5"/> > <nvpair id="tomcat_37-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.7"/> > <nvpair id="tomcat_37-statusurl" name="statusurl" > value="http://localhost:8488/icrf37/handler/login"/> > <nvpair id="tomcat_37-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.7/logs/catalina.pid"/> > <nvpair id="tomcat_37-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.37/startup.log"/> > <nvpair id="tomcat_37-name" name="tomcat_name" > value="tomcat_37"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > <clone id="tomcat_38_clone" ordered="false" interleave="false" > notify="false"> > <instance_attributes id="697ee821-b9b9-40e9-96a9-675ed0f3f541"> > <attributes> > <nvpair name="clone_max" value="2" > id="1b8a13f2-4f7d-4af2-9745-3c86263a16a2"/> > <nvpair name="clone_node_max" value="1" > id="a0961e03-9bc9-4d6e-ba75-9d2db2c652ee"/> > </attributes> > </instance_attributes> > <primitive class="ocf" id="tomcat_38" provider="heartbeat" > type="tomcat"> > <operations> > <op id="tomcat_38_start" name="start" interval="0" > timeout="120s"/> > <op id="tomcat_38_mon" interval="5s" name="monitor" > timeout="120s"/> > </operations> > <instance_attributes id="tomcat_38"> > <attributes> > <nvpair id="tomcat_38-java_home" name="java_home" > value="/opt/jdk1.5"/> > <nvpair id="tomcat_38-catalina_home" name="catalina_home" > value="/opt/jakarta/tomcat-5-iCRF3.8"/> > <nvpair id="tomcat_38-statusurl" name="statusurl" > value="http://localhost:8489/icrf38/handler/login"/> > <nvpair id="tomcat_38-catalina_pid" name="catalina_pid" > value="/opt/jakarta/tomcat-5-iCRF3.8/logs/catalina.pid"/> > <nvpair id="tomcat_38-startup-log" name="script_log" > value="/var/log/www/jakarta/tomcat5.38/startup.log"/> > <nvpair id="tomcat_38-name" name="tomcat_name" > value="tomcat_38"/> > </attributes> > </instance_attributes> > </primitive> > </clone> > </resources> > <constraints> > <rsc_order id="order-1" from="tomcat_22" to="tomcat_21" > score="INFINITY"/> > <rsc_order id="order-2" from="tomcat_22sdb" to="tomcat_22" > score="INFINITY"/> > <rsc_order id="order-3" from="tomcat_30" to="tomcat_22sdb" > score="INFINITY"/> > <rsc_order id="order-4" from="tomcat_34" to="tomcat_30" > score="INFINITY"/> > <rsc_order id="order-5" from="tomcat_35" to="tomcat_34" > score="INFINITY"/> > <rsc_order id="order-6" from="tomcat_36" to="tomcat_35" > score="INFINITY"/> > <rsc_order id="order-7" from="tomcat_37" to="tomcat_36" > score="INFINITY"/> > <rsc_order id="order-8" from="tomcat_38" to="tomcat_37" > score="INFINITY"/> > </constraints> > </configuration> > > Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt > Amtsgericht Köln HRB 32356 > Steuer-Nr.: 217/5717/0536 > Ust.Id.-Nr.: DE 204051920 > -- > This email transmission and any documents, files or previous email > messages attached to it may contain information that is confidential or > legally privileged. If you are not the intended recipient or a person > responsible for delivering this transmission to the intended recipient, > you are hereby notified that any disclosure, copying, printing, > distribution or use of this transmission is strictly prohibited. If you > have received this transmission in error, please immediately notify the > sender by telephone or return email and delete the original transmission > and its attachments without reading or saving in any manner. > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
