Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions docs/server/configuration/configuration-example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: "Configutation Example"
order: 3
---
You must define four fundamental aspects to set up a basic configuration for your cluster.

## Data Storage Configuration
First, define the directory where each node database, index, and log file is stored.
```bash
Db: C:\Path\To\Folder\Cluster\node1\Data
Index: C:\Path\To\Folder\Cluster\node1\Index
Log: C:\Path\To\Folder\Cluster\node1\Log
```

## Network Configuration
After defining the storage directory, configure each node's network settings.
```bash
ReplicationIp: 127.0.0.1
NodeIp: 127.0.0.1
NodePort: 21131
ReplicationPort: 11121
EnableAtomPubOverHTTP: true
```

## Cluster Configuration
After configuring each node's network settings, define the cluster settings to specify a cluster size and set up gossip seeds for node discovery.
```bash
ClusterSize: 3
DiscoverViaDns: false
GossipSeed: 127.0.0.1:21132,127.0.0.1:21133
```

## Certificates Configuration
To secure the cluster, you should configure the certificates for secure communication. It specifies the paths to the node's certificate file, private key file, and trusted root certificates.
```bash
CertificateFile: C:\Path\To\Folder\Cluster\node\node.crt
CertificatePrivateKeyFile: C:\Path\To\Folder\Cluster\node\certificates\node.key
TrustedRootCertificatesPath: C:\Path\To\Folder\es-gencert-cli_1.3.0_Windows-x86_64\ca
```
Loading