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
- Alternatively, you can set the environment variables
116
-
`SERVERLEDGE_HOST` and/or `SERVERLEDGE_PORT`, which are read by the client.
117
-
118
-
Example:
119
-
120
-
$ bin/serverledge-cli status -H <host ip-address> -P <port number>
121
-
122
103
## Configuration
123
104
124
105
You can provide a configuration file using YAML or TOML syntax. Depending on the
@@ -143,6 +124,39 @@ The configuration file may look like this:
143
124
scheduler.queue.capacity: 0
144
125
metrics.enabled: true
145
126
127
+
## Distributed Deployment
128
+
129
+
Distributed deployment can be easily achieved by running multiple Serverledge nodes on different machines. Just a few configuration changes are required to ensure
130
+
that nodes coordinate with each other.
131
+
132
+
### Node Configuration
133
+
134
+
The following parameters in the configuration file are particularly relevant:
135
+
136
+
-`etcd.address`: **Required**. Set this to the address of your `etcd` server (e.g., `192.168.1.10:2379`). All nodes in the same deployment **must** use the same `etcd` cluster.
137
+
-`registry.area`: **Required**. The geographic or administrative area where the node is located (e.g., `EDGE_ZONE_1`). Nodes within the same area will coordinate with each other for horizontal offloading.
138
+
-`registry.remote.area`: (Optional) The identifier of a "higher-layer" infrastructure area (e.g., `CLOUD`). This enables vertical offloading to a cloud-like layer when the local area is overloaded.
139
+
-`api.ip`: (Optional) The IP address of the current node that other nodes can use to reach it. If not set, Serverledge attempts to auto-detect a public IP address.
140
+
141
+
### Using the CLI
142
+
143
+
You can instruct `serverledge-cli` to connect to a specific node by means of environment variables or command-line options:
0 commit comments