https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
r

rhythmic-agency-4145

04/02/2024, 4:11 PM
hello! for setting up GB on-prem, is it recommended to use EC2 or ECS?
h

happy-autumn-40938

04/02/2024, 6:33 PM
We're not prescriptive, but we run it as a container through Lambda. We've also seen quite a bit of EKS.
r

rhythmic-agency-4145

04/02/2024, 6:36 PM
Okay, I see. Thank you. And is it advisable to spin up one instance per environment (dev/prod) or just one instance?
Just starting my research into this tool, so apologies if these are obvious questions!
h

happy-autumn-40938

04/02/2024, 6:37 PM
we have one cluster total which autoscales. the mongo database is hosted separately from the instances
r

rhythmic-agency-4145

04/02/2024, 6:38 PM
I guess I’m wondering for spinning up on-prem docker images - not GB cloud
h

happy-autumn-40938

04/02/2024, 6:39 PM
a single instance is probably sufficient as long as you add a caching layer (CDN, proxy, or both)
r

rhythmic-agency-4145

04/02/2024, 6:40 PM
gotcha. But in case we did decide to spin up two instances (since our dev / prod VPCs are walled, we might have to), that’s possible from the subscription perspective?
as in, can we use the same contract for two instances?
h

happy-autumn-40938

04/02/2024, 6:42 PM
probably, i think. not sure how it's configured on your end. Just be sure to allow both instances to speak with the same mongo cluster.
r

rhythmic-agency-4145

04/02/2024, 6:43 PM
hhm why?
we’ll be using aws documentDB i think, not mongo
h

happy-autumn-40938

04/02/2024, 6:44 PM
most folks use the same database so that they can move feature rules and experiments between environments for ease of testing
👍 1
r

rhythmic-agency-4145

04/02/2024, 6:44 PM
ah ok, that makes sense
thanks!!
h

happy-autumn-40938

04/02/2024, 6:44 PM
no problem
4 Views