From 4a27f22fae2640e050e7f90b1dfa6fe570204b44 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 13 Jan 2014 12:16:06 +0100 Subject: [SERVER] Add example config --- server.config.example/README | 30 ++++++++++++++++++++++++++++++ server.config.example/alt-servers | 4 ++++ server.config.example/server.conf | 6 ++++++ 3 files changed, 40 insertions(+) create mode 100644 server.config.example/README create mode 100644 server.config.example/alt-servers create mode 100644 server.config.example/server.conf diff --git a/server.config.example/README b/server.config.example/README new file mode 100644 index 0000000..285758b --- /dev/null +++ b/server.config.example/README @@ -0,0 +1,30 @@ +Configuration for dnbd3-server + +The server requires a config directory. +Start it like so: ./dnbd3-server -c ./my-config/ + +There are two files in that dir + +== alt-servers == +List of known alt-servers for this server. +Format: +[PREFIX] [Comment] + +Prefix can be: ++ - Only report server to clients as alt-server, but don't use for replication +- - Only use server for replication, but don't advertise to clients +No prefix means server will be advertised to clients and is used for replication + +If you're not running in proxy mode, this file won't do much for you + +== server.conf == + +Main configuration file. Ini format. + +[dnbd3] +basePath=/srv/openslx/dnbd3 # virtual root of image files +serverPenalty=1234 # artificial acceptance delay for incoming server connections (µs) +clientPenalty=2345 # artificial acceptance delay for incoming client connection (µs) +isProxy=true # enable proxy mode - will try to replicate from alt-servers if a client requests unknown image +uplinkTimeout=1250 # r/w timeout for connections to uplink servers + diff --git a/server.config.example/alt-servers b/server.config.example/alt-servers new file mode 100644 index 0000000..fd2f2ec --- /dev/null +++ b/server.config.example/alt-servers @@ -0,0 +1,4 @@ +192.168.100.10 Some alt server ++192.168.100.100 My first alt server that will not be used for replication +-192.168.100.50 Super sectret alt server that will be used for replication, but clients don't know about it + diff --git a/server.config.example/server.conf b/server.config.example/server.conf new file mode 100644 index 0000000..ee8163b --- /dev/null +++ b/server.config.example/server.conf @@ -0,0 +1,6 @@ +[dnbd3] +basePath=/mnt/storage/dnbd3 +serverPenalty=100000 +clientPenalty=0 +isProxy=true + -- cgit v1.2.3-55-g7522