Newsgroup: it.comp.os.linux.sys
Titolo: Dubbi su Heartbeat

Ho abbandonato UCARP e sto usando Heartbeat con soddisfazione.
Ho alcuni dubbi perï¿œ..
In pratica lo uso per monitorare 2 server web con mysql master/master.
Il mio 
ha.cf
:
----------------
keepalive 2
deadtime 30
warntime 10
initdead 120
bcast   eth0 eth1
node    
n1.vs.net
node    
n2.vs.net
crm yes
auto_failback on
deadping 20
use_logd off
logfile /var/log/ha-log
----------------
Primo dubbio: non capisco la difefrenza fra
deadtime e deadping, ho letto la doc .. ma mi sembrano uguali ..
( 
http://www.linux-ha.org/ha.cf#use_logd
 )
warntime: "The warntime directive is used to specify how quickly 
Heartbeat should issue a "late heartbeat" warning".
Cos'ï¿œ il ""late heartbeat" warning" ?
Warning su "use_logd off": l'ho impostato per avere un log separato;
posso ignorare il warning all'avvio ?
--------------------------
CIB.XML
Se devo essere sincero, ho stentato un po' nel capire il funzionamento
della configurazione tramite cibadmin ..
Dopo un bel po' di errori xml ( crm_verify -VL )
ora sono messo cosï¿œ:
Se non erro l'unica risorsa ï¿œ quella che monitorizza la raggiungibilitï¿œ
tramite ping.
Se volessi monitorare anche apache
ï¿œ corretto aggiungere la risorsa cosï¿œ:
crm_attribute --attr-name apache-enabled --attr-value true
Nel dettaglio, come monitorizza apache ?
ï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œ
  <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" 
num_peers="2" cib_feature_revision="1.3" generated="true" epoch="38" 
num_updates="42" cib-last-written="Thu Jun 25 12:46:27 2009" 
ccm_transition="6" dc_uuid="77c22816-5c72-4674-991e-d8791bddb456">
    <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: 
552305612591183b1628baa5bc6e903e0f1e26a3"/>
          </attributes>
        </cluster_property_set>
      </crm_config>
      <nodes>
        <node id="77c22816-5c72-4674-991e-d8791bddb456" 
uname="
n2.vs.net
" type="normal"/>
        <node id="336f765d-2034-4b1a-bdb3-3d0b409ce1cf" 
uname="
n1.vs.net
" type="normal"/>
      </nodes>
      <resources>
        <group id="My-APACHE-group" ordered="true" collocated="true">
          <primitive id="IP-Addr" class="ocf" type="IPaddr2" 
provider="heartbeat">
            <instance_attributes id="IP-Addr_instance_attrs">
              <attributes>
                <nvpair id="IP-Addr_target_role" name="target_role" 
value="started"/>
                <nvpair name="ip" value="192.168.1.180" 
id="7a224575-0932-49ef-bca9-580d7fb48c2c"/>
              </attributes>
            </instance_attributes>
          </primitive>
          <instance_attributes id="My-APACHE-group_instance_attrs">
            <attributes>
              <nvpair id="My-APACHE-group_target_role" 
name="target_role" value="started"/>
            </attributes>
          </instance_attributes>
        </group>
      </resources>
      <constraints>
        <rsc_location id="runs_on_pref_node" rsc="My-APACHE-group">
          <rule id="prefered_runs_on_pref_node" score="100">
            <expression attribute="#uname" operation="eq" 
value="
n1.vs.net
" id="24dae218-4131-4d13-91b9-c91082e9e264"/>
          </rule>
        </rsc_location>
      </constraints>
    </configuration>
    <status>
      <node_state id="336f765d-2034-4b1a-bdb3-3d0b409ce1cf" 
uname="
n1.vs.net
" crmd="online" crm-debug-origin="do_update_resource" 
shutdown="0" in_ccm="true" join="member" ha="active" expected="member">
        <lrm id="336f765d-2034-4b1a-bdb3-3d0b409ce1cf">
          <lrm_resources>
            <lrm_resource id="IP-Addr" type="IPaddr2" class="ocf" 
provider="heartbeat">
              <lrm_rsc_op id="IP-Addr_monitor_0" operation="monitor" 
crm-debug-origin="do_update_resource" 
transition_key="4:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
transition_magic="0:7;4:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
call_id="2" crm_feature_set="2.0" rc_code="7" op_status="0" interval="0" 
op_digest="9cf99fd8c75e11afe3f357d232b65f87"/>
              <lrm_rsc_op id="IP-Addr_start_0" operation="start" 
crm-debug-origin="do_update_resource" 
transition_key="7:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
transition_magic="0:0;7:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
call_id="3" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" 
op_digest="9cf99fd8c75e11afe3f357d232b65f87"/>
            </lrm_resource>
          </lrm_resources>
        </lrm>
        <transient_attributes id="336f765d-2034-4b1a-bdb3-3d0b409ce1cf">
          <instance_attributes 
id="status-336f765d-2034-4b1a-bdb3-3d0b409ce1cf">
            <attributes>
              <nvpair 
id="status-336f765d-2034-4b1a-bdb3-3d0b409ce1cf-probe_complete" 
name="probe_complete" value="true"/>
            </attributes>
          </instance_attributes>
        </transient_attributes>
      </node_state>
      <node_state id="77c22816-5c72-4674-991e-d8791bddb456" 
uname="
n2.vs.net
" crmd="online" crm-debug-origin="do_update_resource" 
shutdown="0" in_ccm="true" join="member" ha="active" expected="member">
        <transient_attributes id="77c22816-5c72-4674-991e-d8791bddb456">
          <instance_attributes 
id="status-77c22816-5c72-4674-991e-d8791bddb456">
            <attributes>
              <nvpair 
id="status-77c22816-5c72-4674-991e-d8791bddb456-probe_complete" 
name="probe_complete" value="true"/>
            </attributes>
          </instance_attributes>
        </transient_attributes>
        <lrm id="77c22816-5c72-4674-991e-d8791bddb456">
          <lrm_resources>
            <lrm_resource id="IP-Addr" type="IPaddr2" class="ocf" 
provider="heartbeat">
              <lrm_rsc_op id="IP-Addr_monitor_0" operation="monitor" 
crm-debug-origin="build_active_RAs" 
transition_key="3:0:592cef55-93aa-4d10-a54c-3f849499b9b1" 
transition_magic="4:7;3:0:592cef55-93aa-4d10-a54c-3f849499b9b1" 
call_id="2" crm_feature_set="2.0" rc_code="7" op_status="4" interval="0" 
op_digest="9cf99fd8c75e11afe3f357d232b65f87"/>
              <lrm_rsc_op id="IP-Addr_stop_0" operation="stop" 
crm-debug-origin="do_update_resource" 
transition_key="6:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
transition_magic="0:0;6:7:592cef55-93aa-4d10-a54c-3f849499b9b1" 
call_id="6" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" 
op_digest="9cf99fd8c75e11afe3f357d232b65f87"/>
              <lrm_rsc_op id="IP-Addr_start_0" operation="start" 
crm-debug-origin="build_active_RAs" 
transition_key="6:6:592cef55-93aa-4d10-a54c-3f849499b9b1" 
transition_magic="0:0;6:6:592cef55-93aa-4d10-a54c-3f849499b9b1" 
call_id="5" crm_feature_set="2.0" rc_code="0" op_status="0" interval="0" 
op_digest="9cf99fd8c75e11afe3f357d232b65f87"/>
            </lrm_resource>
          </lrm_resources>
        </lrm>
      </node_state>
    </status>
  </cib>
ï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œï¿œ
Grazie per chi avesse la pazienza di leggersi sta pappardella :-)
-- Yena --

 Cos'ï¿œ il ""late heartbeat" warning" ?
Un semplice warning che ti dice che la risposta e' lenta ma arriva.
Potrebbe essere sinonimo di un problema o di carico su una macchina.
Davide
-- 
Any sufficiently advanced anything is indistinguishable from utter
nonsense.  - Digby's Generalization of Clarke's Third Law