]> go.fuhry.dev Git - runtime.git/commit
[sd] differentiate node name and shard name
authorDan Fuhry <dan@fuhry.com>
Sat, 22 Mar 2025 02:49:08 +0000 (22:49 -0400)
committerDan Fuhry <dan@fuhry.com>
Sat, 22 Mar 2025 02:49:08 +0000 (22:49 -0400)
commit1a23b4accfcebef53480026365145db7e277c816
treebd7bcfa7ab2d8f10b7e8cfd35ef048ebe3b0cfac
parent88d0440518645c1dd746d0939fadf9032d8c7137
[sd] differentiate node name and shard name

Shard is not always applicable to sd entries, but sd entries do need
some kind of discriminator for etcd path collision avoidance.

Use the first element of the hostname for collision avoidance, and make
shard an optional element that nests items one level deeper.
sd/healthcheck.go
sd/healthcheck_http.go
sd/healthcheck_ldap.go
sd/publish.go
sd/watcher.go