Implement native public edge cutover
This commit is contained in:
parent
d589858c03
commit
bdb9d9a95a
29 changed files with 1215 additions and 31 deletions
|
|
@ -0,0 +1,17 @@
|
|||
[Unit]
|
||||
Description=Islandflow ClickHouse
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/env clickhouse-server --config-file=/etc/clickhouse-server/config.xml
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
User=clickhouse
|
||||
Group=clickhouse
|
||||
StateDirectory=clickhouse
|
||||
LimitNOFILE=262144
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
18
deployment/native/systemd/system/islandflow-nats.service
Normal file
18
deployment/native/systemd/system/islandflow-nats.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Islandflow NATS JetStream
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/sbin/nats-server -js -sd /var/lib/islandflow/nats -a 127.0.0.1 -p 4222 -m 8222
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
User=nats
|
||||
Group=nats
|
||||
RuntimeDirectory=islandflow-nats
|
||||
StateDirectory=islandflow/nats
|
||||
LimitNOFILE=1048576
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
18
deployment/native/systemd/system/islandflow-redis.service
Normal file
18
deployment/native/systemd/system/islandflow-redis.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=Islandflow Redis
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
ExecStart=/usr/bin/env redis-server /etc/islandflow/redis.conf --supervised systemd --daemonize no
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
User=redis
|
||||
Group=redis
|
||||
RuntimeDirectory=islandflow-redis
|
||||
StateDirectory=islandflow/redis
|
||||
LimitNOFILE=65535
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
@ -6,6 +6,8 @@ Wants=network-online.target
|
|||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/delta/islandflow
|
||||
Environment=API_HOST=0.0.0.0
|
||||
Environment=API_PORT=4000
|
||||
EnvironmentFile=/home/delta/islandflow/.env
|
||||
ExecStart=/home/delta/.bun/bin/bun services/api/src/index.ts
|
||||
Restart=always
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ Wants=network-online.target
|
|||
Type=simple
|
||||
WorkingDirectory=/home/delta/islandflow
|
||||
EnvironmentFile=/home/delta/islandflow/.env
|
||||
Environment=OPTIONS_INGEST_ADAPTER=synthetic
|
||||
ExecStart=/home/delta/.bun/bin/bun services/ingest-options/src/index.ts
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
|
|
|
|||
|
|
@ -6,8 +6,10 @@ Wants=network-online.target
|
|||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/home/delta/islandflow
|
||||
Environment=WEB_HOST=0.0.0.0
|
||||
Environment=WEB_PORT=3000
|
||||
EnvironmentFile=/home/delta/islandflow/.env
|
||||
ExecStart=/home/delta/.bun/bin/bun --cwd apps/web run start
|
||||
ExecStart=/bin/sh -lc 'cd /home/delta/islandflow/apps/web && exec /home/delta/.bun/bin/bun x next start -H "$WEB_HOST" -p "$WEB_PORT"'
|
||||
Restart=always
|
||||
RestartSec=2
|
||||
KillSignal=SIGINT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue