Hi Everyone, Prefect if awesome!! I wanted to sha...
# prefect-server
n
Hi Everyone, Prefect if awesome!! I wanted to share my excitement with my team, by demoing prefect running on our k8s cluster. Before I do that, I am trying to get this thing work on local k8s. So I have followed the helm instructions on official documentation this is where I stand. I have selected 2 replicas for the agent, they spin up so far. But only 1 agents shows up in the UI? Any idea why that would happen and what I am missing here? Thanks in Advance!!
1
k
Hi @Nitin Karolla! It’s likely these just look identical to Cloud and register as 1 agent. Really though you shouldn’t need more than 1 agent.
For this specific resource. You can have other agents for other resources.
n
Thanks for your response @Kevin Kho . Okay, I found something same online here - https://github.com/PrefectHQ/ui/issues/384. I guess this is what you were referencing. Also, I would not need more than 1 agent for demo purpose or in production setting as well? Also what do you mean when you say “You can have other agents for other resources.” I am sorry, very new to prefect and terminology used here.
k
As in if you had another agent for another EC2 instance or something. The agent is a pretty lightweight process and you shouldn’t need more than 1 replica….although I suppose it wouldn’t hurt now that I think about it. If one goes down, you’ll still see the other one.
n
My idea of Prefect Agent was like of a build agent, that does the work, although in K8s case, it’s the one thats initiates jobs. Is that right? I see what you meant. Thank you.
👍 1
k
It is the one that kicks off the jobs but it’s a lightweight process and can handle concurrency