superfly / litefs

FUSE-based file system for replicating SQLite databases across a cluster of machines
Apache License 2.0
3.78k stars 89 forks source link

Expose primary information #43

Closed jwhear closed 1 year ago

jwhear commented 1 year ago

Directing writes to the primary node is the job of the application, so the primary's hostname needs to be exposed somehow. At present the application can get this by querying Consul, but if #37 and/or #23 are implemented this will no longer be the case. I propose exposing this information via a file in the shadow directory, similar to Litestream's .primary.

benbjohnson commented 1 year ago

I think I'll switch the .primary to show the hostname instead of the LiteFS URL endpoint. That really doesn't need to be exposed to the end user AFAICT.

benbjohnson commented 1 year ago

Fixed via https://github.com/superfly/litefs/pull/66