From ce69a55fd6058e624a27ef6482f4facfdedcb929 Mon Sep 17 00:00:00 2001 From: Nico D'Cotta <45274424+Cottand@users.noreply.github.com> Date: Thu, 24 Aug 2023 19:08:23 +0200 Subject: [PATCH] Add SRV to documentation --- SRV-Service-Discovery.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 SRV-Service-Discovery.md diff --git a/SRV-Service-Discovery.md b/SRV-Service-Discovery.md new file mode 100644 index 0000000..1c04c5a --- /dev/null +++ b/SRV-Service-Discovery.md @@ -0,0 +1,10 @@ +## Filer server + +The Filer server also accepts SRV records (prepended with `dnssrv+`) to discover the master server: + +```bash + weed filer -master=dnssrv+_http._tcp.seaweedfs-master.consul +``` +where `_http._tcp.seaweedfs-master.consul` is a DNS SRV record that returns the HTTP port of the master (or, alternatively, the gRPC port minus 10000). + +The SRV record may return several master instances in order to join a HA setup. A comma-separated list of SRV records pointing to several master instances **is not valid**. \ No newline at end of file