You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
continuity server add --pool POOL_HOSTNAME # Pool hostname the server should be added to
125
+
--address SERVER_ADDRESS:PORT # Address of the server (IP or hostname)
126
+
[--health-check /healthcheck_endpoint] # Optional header name for routing condition
127
+
[--condition MY_HEADER=MY_VALUE] # Optional header value for routing condition
128
+
```
124
129
130
+
Example:
131
+
```bash
132
+
continuity server add --pool http://my-app.domain.com --address docker-1:8080 --health-check /health
125
133
```
126
134
127
135
### Add a server with a routing condition to the pool
136
+
```bash
137
+
continuity server add --pool http://my-app.domain.com --address docker-2:8080 --condition X-HEADER=srv2
138
+
```
139
+
128
140
### Add a server and remove an old server transactionally (zero downtime deployments)
141
+
```
142
+
continuity server transaction --pool POOL_HOSTNAME # Pool hostname the server should be added to
143
+
-address NEW_SERVER_ADDRESS:PORT # Address of the new server (IP or hostname)
144
+
--remove-server OLD_SERVER_UUID # Address of the old server to remove
145
+
[--health-check /healthcheck_endpoint] # Optional header name for routing condition
146
+
[--condition MY_HEADER=MY_VALUE] # Optional header value for routing condition
147
+
```
148
+
To obtain the server UUID, use the `continuity pool config POOLNAME` command (use `--json` for JSON output), see [View current configuration](#view-current-configuration) below.
if you have installed the statically linked binary or built from source, you can start the server with:
211
+
212
+
```bash
213
+
./continuity-server -config /path/to/config.yaml
214
+
```
215
+
If -config is not specified, the server will look for a config.yaml file in the current directory.
216
+
139
217
### Configuration file auto update
140
-
### View server logs
218
+
219
+
Every configuration update made via the CLI client or RESTful API is automatically persisted to the configuration file specified when starting the server.
220
+
Please note that the file is overwritten on every change, so if you are manually editing the file don't use the CLI / API at the same time to avoid losing changes.
221
+
222
+
### View server logs
223
+
224
+
The server will print logs to stdout, so if you are running it via docker you can view the logs with:
225
+
226
+
```bash
227
+
docker logs -f <container_id>
228
+
```
229
+
If you are running the server as a systemd service, you can view the logs with:
230
+
231
+
```bash
232
+
sudo journalctl -u continuity-server -f
233
+
```
234
+
If you are running the server manually, the logs will be printed to the terminal and is up to you to redirect them to a file:
0 commit comments