[Pacemaker] Jboss with httpd proxy_balancer module
orlste at tiscali.it
orlste at tiscali.it
Wed Apr 16 10:10:16 UTC 2014
Hi all,
I've a problem to integrate in pacemaker the
apache-module for jboss, on a two-node cluster with a pacemaker
configuration already existing.
I try to use apache:ocf mdule as
follow:
_primitive apache ocf:heartbeat:apache _
_ params
configfile="/opt/jboss/httpd/httpd/conf/httpd.conf" _
_ params
httpd="/opt/jboss/httpd/sbin/httpd" _
_ op start interval="0"
timeout="40" _
_ op stop interval="0" timeout="60" _
_ op monitor
interval="120s" timeout="60s" _
_ meta target-role="Started"_
But I
get following error on messages:
_attrd[13343]: notice:
attrd_trigger_update: Sending flush op to all hosts for:
fail-count-apache ()_
_attrd[13343]: notice: attrd_perform_update: Sent
delete 5565: node=toemaprend1, attr=fail-count-apache, id=, set=(null),
section=status_
_attrd[13343]: notice: attrd_perform_update: Sent delete
5567: node=toemaprend1, attr=fail-count-apache, id=, set=(null),
section=status_
_crmd[13345]: warning: decode_transition_key: Bad UUID
(crm_resource.c) in sscanf result (4) for 35914:0:0:crm_resource.c
_
_apache(apache)[35916]: INFO: apache not running_
_crmd[13345]:
notice: process_lrm_event: LRM operation apache_monitor_0 (call=10812,
rc=7, cib-update=3121, confirmed=true) not
running_
_apache(apache)[35954]: INFO: apache not
running_
_apache(apache)[35954]: INFO: waiting for apache
/opt/jboss/httpd/httpd/conf/httpd.conf to come
up_
_apache(apache)[35954]: INFO: apache not
running_
_apache(apache)[35954]: INFO: waiting for apache
/opt/jboss/httpd/httpd/conf/httpd.conf to come up_
_..._
_lrmd[13342]:
warning: child_timeout_callback: apache_start_0 process (PID 35954)
timed out_
_lrmd[13342]: warning: operation_finished:
apache_start_0:35954 - timed out after 40000ms_
_crmd[13345]: error:
process_lrm_event: LRM operation apache_start_0 (10815) Timed Out
(timeout=40000ms)_
_attrd[13343]: notice: attrd_ais_dispatch: Update
relayed from toemaprend2_
_attrd[13343]: notice: attrd_trigger_update:
Sending flush op to all hosts for: fail-count-apache
(INFINITY)_
_attrd[13343]: notice: attrd_perform_update: Sent update
5571: fail-count-apache=INFINITY_
_attrd[13343]: notice:
attrd_ais_dispatch: Update relayed from toemaprend2_
_attrd[13343]:
notice: attrd_trigger_update: Sending flush op to all hosts for:
last-failure-apache (1397641676)_
_attrd[13343]: notice:
attrd_perform_update: Sent update 5573:
last-failure-apache=1397641676_
_attrd[13343]: notice:
attrd_ais_dispatch: Update relayed from toemaprend2_
_attrd[13343]:
notice: attrd_trigger_update: Sending flush op to all hosts for:
fail-count-apache (INFINITY)_
_attrd[13343]: notice:
attrd_perform_update: Sent update 5575:
fail-count-apache=INFINITY_
_attrd[13343]: notice: attrd_ais_dispatch:
Update relayed from toemaprend2_
_attrd[13343]: notice:
attrd_trigger_update: Sending flush op to all hosts for:
last-failure-apache (1397641676)_
_attrd[13343]: notice:
attrd_perform_update: Sent update 5577:
last-failure-apache=1397641676_
_apache(apache)[39199]: INFO: apache is
not running._
_apache(apache)[39199]: INFO: apache children were
signalled (SIGTERM)_
_apache(apache)[39199]: INFO: apache children were
signalled (SIGHUP)_
_crmd[13345]: notice: process_lrm_event: LRM
operation apache_stop_0 (call=10818, rc=0, cib-update=3123,
confirmed=true) ok_
On crm status:
Failed actions:
apache_start_0
(node=toemaprend2, call=551, rc=1, status=Timed Out): unknown error
apache_start_0 (node=toemaprend1, call=10815, rc=1, status=Timed Out):
unknown error
So i try to modify the config with anything:ocf and it
works for start/stop and migrate:
_primitive res_web_ha
ocf:heartbeat:anything _
_params
binfile="/opt/jboss/httpd/sbin/apachectl" cmdline_options="start"
_
_operations $id="res_web_ha-operations" _
_op start interval="0"
timeout="20" _
_op stop interval="0" timeout="20" _
_op monitor
interval="10" timeout="20" start-delay="0"_
But I have failure on
monitoring:
_lrmd[13342]: notice: operation_finished:
res_web_ha_monitor_0:25962 [ /usr/lib/ocf/resource.d/heartbeat/anything:
line 60: kill: (23849) - No such process ]_
_crmd[13345]: notice:
process_lrm_event: LRM operation res_web_ha_monitor_0 (call=10851, rc=0,
cib-update=3143, confirmed=true) ok_
_lrmd[13342]: notice:
operation_finished: res_web_ha_monitor_10000:25977 [
/usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No
such process ]_
_crmd[13345]: notice: process_lrm_event: LRM operation
res_web_ha_monitor_10000 (call=10854, rc=0, cib-update=3144,
confirmed=false) ok_
_lrmd[13342]: notice: operation_finished:
res_web_ha_monitor_10000:26522 [
/usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No
such process ]_
_lrmd[13342]: notice: operation_finished:
res_web_ha_monitor_10000:27030 [
/usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No
such process ]_
_lrmd[13342]: notice: operation_finished:
res_web_ha_monitor_10000:27515 [
/usr/lib/ocf/resource.d/heartbeat/anything: line 60: kill: (23849) - No
such process ]_
and no error on crm status.
I could use the
anything:ocf config, but in this way I don't know how to monitor the
resource.
Can you help me?
Thanks,
Ste
Scopri istella, il
nuovo motore per il web italiano.
Istella garantisce risultati di
qualità e la possibilità di condividere, in modo semplice e veloce,
documenti, immagini, audio e video.
Usa istella, vai su
http://www.istella.it?wtk=amc138614816829636 [1]
Links:
------
[1]
http://www.istella.it?wtk=amc138614816829636
Scopri istella, il nuovo motore per il web italiano.
Istella garantisce risultati di qualità e la possibilità di condividere, in modo semplice e veloce, documenti, immagini, audio e video.
Usa istella, vai su http://www.istella.it?wtk=amc138614816829636
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140416/b4084eb2/attachment-0003.html>
More information about the Pacemaker
mailing list