-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: get pegboard -> fdb connection over vlan
- Loading branch information
1 parent
3415ead
commit 2218134
Showing
11 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Cluster layout | ||
|
||
Ideally, 3 servers per DC that coordinate with each other. | ||
|
||
Each process should have around 4GB of memory, so servers with more than 4GB can run multiple processes | ||
(unconfirmed). |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
packages/services/cluster/src/workflows/server/install/install_scripts/components/fdb.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 50 additions & 6 deletions
56
...ages/services/cluster/src/workflows/server/install/install_scripts/files/fdb_configure.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,52 @@ | ||
# Append config | ||
# cat << 'EOF' >> /etc/foundationdb/foundationdb.conf | ||
# [fdbserver] | ||
# EOF | ||
cat << 'EOF' > /etc/foundationdb/foundationdb.conf | ||
## foundationdb.conf | ||
## | ||
## Configuration file for FoundationDB server processes | ||
## Full documentation is available at | ||
## https://apple.github.io/foundationdb/configuration.html#the-configuration-file | ||
# TODO: add -t flag for TLS (https://apple.github.io/foundationdb/tls.html#enable-tls) | ||
# Make fdb accessible on VLAN | ||
python3 /usr/lib/foundationdb/make_public.py -a ___VLAN_IP___ | ||
[fdbmonitor] | ||
user = foundationdb | ||
group = foundationdb | ||
[general] | ||
restart-delay = 60 | ||
## by default, restart-backoff = restart-delay-reset-interval = restart-delay | ||
# initial-restart-delay = 0 | ||
# restart-backoff = 60 | ||
# restart-delay-reset-interval = 60 | ||
cluster-file = /etc/foundationdb/fdb.cluster | ||
# delete-envvars = | ||
# kill-on-configuration-change = true | ||
## Default parameters for individual fdbserver processes | ||
[fdbserver] | ||
command = /usr/sbin/fdbserver | ||
public-address = ___VLAN_IP___:$ID | ||
listen-address = 0.0.0.0:$ID | ||
datadir = /var/lib/foundationdb/data/$ID | ||
logdir = /var/log/foundationdb | ||
machine-id = ___SERVER_ID___ | ||
datacenter-id = ___DATACENTER_ID___ | ||
# logsize = 10MiB | ||
# maxlogssize = 100MiB | ||
# class = | ||
# memory = 8GiB | ||
# storage-memory = 1GiB | ||
# cache-memory = 2GiB | ||
# metrics-cluster = | ||
# metrics-prefix = | ||
# TODO: TLS | ||
# Individual servers | ||
[fdbserver.4500] | ||
[fdbserver.4501] | ||
[backup_agent] | ||
command = /usr/lib/foundationdb/backup_agent/backup_agent | ||
logdir = /var/log/foundationdb | ||
[backup_agent.1] | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters