https://dagster.io/ logo
Title
w

Will Gunadi

03/03/2022, 9:35 PM
Can two dagster-daemon processes run on one server (ubuntu)? The scenario is: one for Development and the other for Production
d

daniel

03/03/2022, 9:37 PM
Hey Will - I think this could work, but they'd need to have totally independent storages and workspaces (and dagster.yaml / DAGSTER_HOME values). We don't currently support having two dagster-daemons for the same instance.
w

Will Gunadi

03/03/2022, 9:38 PM
@daniel sure thing. My question stems from the dagster-daemon using some grpc comms, so I wonder if we have to give it another name or something
d

daniel

03/03/2022, 9:39 PM
I can't immediately think of anything that would break with that if two were running
but I haven't tried it so its hard to be 100% sure
w

Will Gunadi

03/03/2022, 9:40 PM
Guess we'll find out 😄
@daniel So I ran the 2nd dagster-daemon as a separate unix user. When I run Dagit (as the same user), it says that the daemon is not running. How do I tell dagit which daemon to connect to?
d

daniel

03/04/2022, 6:16 PM
they communicate with each other via the storage - do you have two different databases running?
and two different dagster.yamls?
w

Will Gunadi

03/04/2022, 6:17 PM
Yes, 2 dagster.yaml
d

daniel

03/04/2022, 6:17 PM
and two different DAGSTER_HOMEs so that one daemon is writing to one database, and the other is writing to the other database? (and similar with the two dagits)
w

Will Gunadi

03/04/2022, 6:17 PM
correct
d

daniel

03/04/2022, 6:18 PM
That should be sufficient for the daemon heartbeats/statuses to show up in the correct dagit
w

Will Gunadi

03/04/2022, 6:18 PM
nope im an idiot
forgot export DAGSTER_HOME=$PWD
for the dagit
I do wish that there is a more explicit way to tell dagit which daemon it should be watching for