Unique env var per replica
robbedchunk
PROOP

8 months ago

I currently have a master instance that handles both crons and webapi.

I want to scale to more replicas. For this, I usually have a variable MASTER=true for the replica designated to run crons and the remainder handle the webapi requests.

How do I set a replica-specific env var so I can designate the master cron-runner?

Solved

4 Replies

robbedchunk
PROOP

8 months ago

N/A


robbedchunk
PROOP

8 months ago

solved: creating one deployment for master and another for replicas


robbedchunk
PROOP

8 months ago

/solve.


8 months ago

!s


Status changed to Solved adam 8 months ago


Loading...