FoundationDB / fdb-document-layer

A document data model on FoundationDB, implementing MongoDB® wire protocol
Apache License 2.0
207 stars 29 forks source link

Change to startup process to make health checking easier #133

Open brownleej opened 5 years ago

brownleej commented 5 years ago

Before the Document Layer binds to its listening address, it reads data from its backing FoundationDB cluster. This may present problems with health checking. Depending on how the organization's is using health checks, they may want to have health checks that succeed even if downstream dependencies are failing. For instance, if a FoundationDB database goes unavailable, the operators may not want the Document Layer instances to report as unhealthy, because that could cause a cascading series of failures. It may be preferable to have the Document Layer instances continue to receive traffic, so they can report more helpful error messages to their upstream clients.

Could we restructure this flow so that the Document Layer instances open their listening connection before reading from their FoundationDB cluster?

senthil-db-expert commented 5 years ago

@apkar Please assign this ticket to me