Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use only one server when deploying to preproduction #5095

Merged
merged 3 commits into from
Mar 28, 2023

Conversation

javierm
Copy link
Member

@javierm javierm commented Mar 21, 2023

Objectives

  • Use the same number of servers to deploy to preproduction as we do on production
  • Allow using either server or server1 as deploy secrets on all environments
  • Simplify the deploy secrets example file

It doesn't make much sense that by default we use one server on
production on two servers on preproduction.

Note we're keeping `server1` instead of using just `server` in order to
keep compatibility with existing installation.
We were using `server` on staging but `server1` and `server2` on
preproduction and production.

The reason behind it is we've always used one server on staging but
sometimes we've used several servers on preproduction and production.

However, this is a bit of a mess on installations which have only one
server on preproduction or production and need to use the `server` key
for the staging environments but `server1` for other environments.

So, in order to keep compatibility with existing Consul installations,
we're now allowing either `server` or `server1` on any environment.
So now it's similar to our database example file.
@javierm javierm self-assigned this Mar 21, 2023
@javierm javierm added this to Reviewing in Consul Democracy Mar 21, 2023
Consul Democracy automation moved this from Reviewing to Testing Mar 22, 2023
@taitus taitus self-assigned this Mar 22, 2023
@javierm javierm merged commit 26f806b into master Mar 28, 2023
Consul Democracy automation moved this from Testing to Release 2.0.0 Mar 28, 2023
@javierm javierm deleted the one_server_on_preproduction branch March 28, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants