... | ... | @@ -30,10 +30,10 @@ Standalone proxy-go instances |
|
|
|
|
|
The standalone proxy-go instances are managed by runit. You can see a list of possible instances under `/etc/service`. They are set up to periodically restart themselves in case of a hang.
|
|
|
```
|
|
|
sv status snowflake-proxy-standalone-17h # check status
|
|
|
sv start snowflake-proxy-standalone-17h # start
|
|
|
sv stop snowflake-proxy-standalone-17h # stop
|
|
|
ps xww | grep runsvdir # check for error in the run script
|
|
|
sv status snowflake-proxy-standalone-17h # check status
|
|
|
sv start snowflake-proxy-standalone-17h # start
|
|
|
sv stop snowflake-proxy-standalone-17h # stop
|
|
|
ps xww | grep runsvdir # check for error in the run script
|
|
|
```
|
|
|
Logs are stored in `/home/snowflake-proxy/*.log.d`.
|
|
|
|
... | ... | @@ -46,22 +46,22 @@ sv restart snowflake-proxy-standalone-29h |
|
|
|
|
|
Adding a new instance:
|
|
|
```
|
|
|
cd /etc/runit
|
|
|
mkdir -p my-instance/log
|
|
|
cat > my-instance/run <<EOF
|
|
|
cd /etc/runit
|
|
|
mkdir -p my-instance/log
|
|
|
cat > my-instance/run <<EOF
|
|
|
#!/bin/sh
|
|
|
exec chpst -u snowflake-proxy timeout 17h /usr/local/bin/proxy-go -broker https://snowflake-broker.bamsoftware.com/ 2>&1
|
|
|
EOF
|
|
|
cat > my-instance/log/run <<EOF
|
|
|
cat > my-instance/log/run <<EOF
|
|
|
#!/bin/sh
|
|
|
exec chpst -u snowflake-proxy svlogd /home/snowflake-proxy/my-instance.log.d
|
|
|
EOF
|
|
|
chmod +x my-instance/run my-instance/log/run
|
|
|
cd /etc/service
|
|
|
ln -s /etc/runit/my-instance/
|
|
|
mkdir /home/snowflake-proxy/my-instance.log.d
|
|
|
chown snowflake-proxy:nogroup /home/snowflake-proxy/my-instance.log.d
|
|
|
sv start my-instance
|
|
|
chmod +x my-instance/run my-instance/log/run
|
|
|
cd /etc/service
|
|
|
ln -s /etc/runit/my-instance/
|
|
|
mkdir /home/snowflake-proxy/my-instance.log.d
|
|
|
chown snowflake-proxy:nogroup /home/snowflake-proxy/my-instance.log.d
|
|
|
sv start my-instance
|
|
|
```
|
|
|
|
|
|
Firewall configuration is in `/etc/ferm/ferm.conf`. Run `service ferm restart` after making changes. |
|
|
\ No newline at end of file |