mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 13:39:22 +01:00
* add names to celery nodes * use python instead * hostname naming
This commit is contained in:
parent
479807143b
commit
444568a06e
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
|
||||
rm celerybeat.pid || echo "celerybeat.pid not found, proceeding"
|
||||
celery -A posthog beat -S redbeat.RedBeatScheduler
|
||||
celery -A posthog beat -S redbeat.RedBeatScheduler -n node@%%h
|
@ -65,6 +65,7 @@ fi
|
||||
|
||||
FLAGS=()
|
||||
FLAGS+=("-Ofair")
|
||||
FLAGS+=("-n node@%%h")
|
||||
[ "$with_gossip" == "false" ] && FLAGS+=("--without-gossip")
|
||||
[ "$with_mingle" == "false" ] && FLAGS+=("--without-mingle")
|
||||
[ "$with_heartbeat" == "false" ] && FLAGS+=("--without-heartbeat")
|
||||
|
@ -5,7 +5,7 @@ set -e
|
||||
trap 'kill $(jobs -p)' EXIT
|
||||
|
||||
# start celery worker with heartbeat (-B)
|
||||
celery -A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle -Ofair &
|
||||
celery -A posthog worker -B --scheduler redbeat.RedBeatScheduler --without-heartbeat --without-gossip --without-mingle -Ofair -n node@%%h &
|
||||
|
||||
# start celery plugin worker
|
||||
./bin/plugin-server
|
||||
|
Loading…
Reference in New Issue
Block a user