Skip to content

Commit 2b62a32

Browse files
authored
Merge pull request #143 from HarperDB/replication-port-change
update replication port
2 parents 5b3ffc4 + 38cecec commit 2b62a32

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/deployments/configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ replication:
181181
routes:
182182
- wss://server-two:9925
183183
port: null
184-
securePort: 9925,
184+
securePort: 9933,
185185
disableRootCAs: false
186186
```
187187

@@ -217,11 +217,11 @@ replication:
217217
port: 9930
218218
```
219219

220-
`port` - _Type_: integer; _Default_: 9925 (the operations API port `operationsApi.port`)
220+
`port` - _Type_: integer;
221221

222222
The port to use for replication connections.
223223

224-
`securePort` - _Type_: integer;
224+
`securePort` - _Type_: integer; _Default_: 9933
225225

226226
The port to use for secure replication connections.
227227

docs/developers/replication/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ In this example, the current node is `server-one`, and it will connect to `serve
2424
replication:
2525
hostname: server-one
2626
routes:
27-
- wss://server-two:9925 # URL based route
27+
- wss://server-two:9933 # URL based route
2828
- hostname: server-three # define a hostname and port
29-
port: 9930
29+
port: 9933
3030
```
3131

3232
You can also use the [operations API](../operations-api/clustering.md) to dynamically add and remove nodes from the cluster. This is useful for adding new nodes to a running cluster or removing nodes that are no longer needed. For example (note this is the basic form, you would also need to provide the necessary credentials for the operation, see the section on securing connections for more details):
@@ -63,15 +63,13 @@ type LocalTableForNode @table(replicate: false) {
6363

6464
You can also control which nodes data is replicated to, and how many nodes data is replicated to. By default, HarperDB will replicate data to all nodes in the cluster, but you can control where data is replicated to with the [sharding configuration and APIs](sharding.md).
6565

66-
By default replication will connect on the operations API network interface/port (9925 by default). You can configure the replication port in the `replication` section. For example, to change the replication port to 9930:
66+
By default, replication connects to the secure port 9933. You can configure the replication port in the `replication` section.
6767

6868
```yaml
6969
replication:
70-
securePort: 9930
70+
securePort: 9933
7171
```
7272

73-
This will change the replication port to 9930 and the operations API port will be on a separate port, remaining on 9925.
74-
7573
### Securing Connections
7674

7775
HarperDB supports the highest levels of security through public key infrastructure based security and authorization. Depending on your security configuration, you can configure HarperDB in several different ways to build a connected cluster.
@@ -157,7 +155,7 @@ You can completely disable secure connections and use IP addresses to authentica
157155

158156
```yaml
159157
replication:
160-
port: 9930
158+
port: 9933
161159
routes:
162160
- 127.0.0.2
163161
- 127.0.0.3

0 commit comments

Comments
 (0)