https://prefect.io logo
Title
l

Lon Nix

11/01/2021, 9:32 PM
is there a recommended approach for using the prefect cli with multiple server installations? I have a dev and prod setup and I'd like to be able to do something like
prefect server create-tenant --profile dev
k

Kevin Kho

11/01/2021, 9:33 PM
Hey @Lon Nix, multiple servers is not a common use case so there’s no recommended approach. Are you trying to have separation between dev, staging, and prod?
l

Lon Nix

11/01/2021, 9:33 PM
yup
I'm new to this so I want one where I can test upgrades and whatnot before touching prod.
Everything will run in prod, dev is just for me testing upgrades of prefect
k

Kevin Kho

11/01/2021, 9:36 PM
So even in Prefect Cloud, multi-tenancy is an enterprise-only feature so what our users do is use Projects to provide separation, and then have agents with specific labels such that they can only pick up flows from dev, staging, and prod. And then you can look at flow deployment patterns in this discussion (and you can contribute too!)
l

Lon Nix

11/01/2021, 9:37 PM
I plan on doing exactly that for flows, I just want a place where I can test upgrading prefect. I have a tendency to....um.....break things 🙂
k

Kevin Kho

11/01/2021, 9:39 PM
I saw a user upgrade from 0.12.9 all the way to 0.15.x and it turned out fine. But if you do want to create a test env, the only way I see this working is having a setup like VM1 and VM2, and changing your config to point to VM2 instead through the IP address in your config
l

Lon Nix

11/01/2021, 9:40 PM
gotcha, that's easy enough to manage. Its not that I don't trust prefect, its that I don't trust me to not break something 🙂 especially while this is all so new to me
k

Kevin Kho

11/01/2021, 9:41 PM
Yes no problem at all. Also, just making sure you know, Cloud gives 10000 free task runs every month (some users here are unaware).
l

Lon Nix

11/01/2021, 9:41 PM
good to know!
thanks!