On Thu, Mar 7, 2024 at 10:21 PM Lance Nehring <[email protected]>
wrote:

> I'm wanting to deploy a GoCD server into 2 different K8S clusters and have
> them share a database.     My goal is to be able performance maintenance on
> one K8S cluster without impacting the developers.
>
> *SO* the question is: can multiple GoCD servers share a database without
> interfering with each other?
>

The two instances will have a unique server ID and should not point to the
same database. Please do not attempt this even by making them share the
same identity since they will be writing to the database.

For higher availability, you'll need to think more about the agents
connecting to the server on the second K8s cluster. Agents can continue
with their job when a server is unavailable and can reconnect to the server
once it is back online.

You can leverage this behaviour to achieve some form of HA by:
- keeping postgres external to the cluster
- stopping the GoCD server on the first cluster
- starting the GoCD server with the same configuration on the second cluster
- either setting up an LB in front of the first with a fail over to the
second K8s cluster
OR setting up DNS round robin to refer to the second K8s
OR setting a really low TTL for the DNS name and making it point to the
second cluster for a switch over.


>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/448aff6b-4bbf-4a5f-a3a2-3289a228dfe6n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/448aff6b-4bbf-4a5f-a3a2-3289a228dfe6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CANiY96basJe4Jiteh-GNsX%2BF5OJzDuCh82Dg-nBLmS%3DsPY7DiA%40mail.gmail.com.

Reply via email to