Implement native public edge cutover
This commit is contained in:
parent
d589858c03
commit
bdb9d9a95a
29 changed files with 1215 additions and 31 deletions
17
deployment/native/start-infra.sh
Executable file
17
deployment/native/start-infra.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "${EUID}" -ne 0 ]]; then
|
||||
echo "Run as root: sudo $0" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for unit in redis-server.service nats-server.service clickhouse-server.service; do
|
||||
if systemctl list-unit-files "$unit" >/dev/null 2>&1; then
|
||||
systemctl disable --now "$unit" >/dev/null 2>&1 || true
|
||||
fi
|
||||
done
|
||||
|
||||
systemctl reset-failed islandflow-nats.service islandflow-redis.service islandflow-clickhouse.service || true
|
||||
systemctl enable --now islandflow-nats.service islandflow-redis.service islandflow-clickhouse.service
|
||||
"$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/check-native-infra.sh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue