Commit 3f56844f authored by Jérome Perrin's avatar Jérome Perrin

Remove all old tic script and keep only zope_tic_loop, which now tics portal_alarm as well.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec0c3366
#!/bin/bash
while true; do
#wget -O /tmp/zope_distribute.out http://jp:jp@192.1.2.151:9473/coramy/portal_activities/distribute?node_count:int=1
wget -O /tmp/zope_distribute.out http://jp:jp@192.1.2.151:9473/coramy/portal_activities/distribute?node_count:int=5
wget -O /tmp/zope_tic1.out http://jp:jp@192.1.2.151:9473/coramy/portal_activities/tic?processing_node:int=1
wget -O /tmp/zope_tic2.out http://jp:jp@192.1.2.150:9473/coramy/portal_activities/tic?processing_node:int=2
wget -O /tmp/zope_tic3.out http://jp:jp@192.1.2.150:9573/coramy/portal_activities/tic?processing_node:int=3
wget -O /tmp/zope_tic4.out http://jp:jp@192.1.2.152:9473/coramy/portal_activities/tic?processing_node:int=4
wget -O /tmp/zope_tic4.out http://jp:jp@192.1.2.153:9473/coramy/portal_activities/tic?processing_node:int=5
sleep 15
done
#!/bin/bash
wget -O /tmp/zope_tic.out http://jp:jp@localhost:9673/coramy/portal_activities/tic
#!/bin/bash
# CMFActivity tic script.
# This script is for a standalone Zope instance running on localhost.
# For clusters, GET distribute with the number of nodes, and GET tic
# on each machine with the corresponding processing_node id.
# Make sure this user exists in the portal, and has Member role
[ -z $AUTH ] && AUTH=zope:zope
[ -z $PORT ] && PORT=9080
[ -z $SITE ] && ZOPE_TIC_LOOP_SITE=erp5
[ -z $TMP ] && TMP=/tmp
echo Starting tic on $SITE:$PORT with $AUTH
while true; do
wget -O /tmp/zope_distribute.out http://jp:jp@localhost:9673/coramy/portal_activities/distribute?node_count:int=1
wget -O /tmp/zope_tic.out http://jp:jp@localhost:9673/coramy/portal_activities/tic?processing_node:int=1
sleep 5
# distribute on nodes
wget -q -O $TMP/zope_distribute.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_activities/distribute?node_count:int=1
# execute registred activities for this node
wget -q -O $TMP/zope_tic.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_activities/tic?processing_node:int=1
# sample for another node
#wget -q -O $TMP/zope_tic.out http://${AUTH}@anotherhost:${PORT}/${SITE}/portal_activities/tic?processing_node:int=2
# tic alarms
wget -q -O $TMP/zope_alarm_tic.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_alarms/tic
# 10 is recommended on production servers, but 4 is enough for development
sleep 4
done
#!/bin/bash
while true; do
wget -O /tmp/zope_tic1.out http://jp:jp@localhost:9573/coramy/portal_activities/tic?processing_node:int=1
sleep 5
done
#!/bin/bash
while true; do
wget -O /tmp/zope_tic2.out http://jp:jp@192.1.2.150:9473/coramy/portal_activities/tic?processing_node:int=2
sleep 5
done
#!/bin/bash
while true; do
wget -O /tmp/zope_tic3.out http://jp:jp@192.1.2.150:9573/coramy/portal_activities/tic?processing_node:int=3
sleep 5
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment