Hi I want to be able to run 2 instances of dagster...
# ask-community
v
Hi I want to be able to run 2 instances of dagster on my machine (production and development for testing) How can I configure different port for dagster-daemon? For dagit I saw in documentation that I can do this when I'm starting with
dagit -p PORT
. What and where I should write to change the port? Thanks in advance
c
Hi Vlad. You can configure a different port for dagster-daemon via the
--grpc-port
option: https://docs.dagster.io/_apidocs/cli#dagster-daemon-run
v
@claire Hey. It doesn't work for me. dagster version 0.13.16
c
Ah apologies, the daemon isn't a server, so there isn't a port to override
it launches jobs based on reading from the database, it doesn't take requests from clients
v
So, if I change the port in dagit, will that be enough to run one instance for production and a second one for development?
d
Hey Vlad - the other big thing that you would need is a separate database for the two dagits
(and two daemons). But yeah, once you have 2 separate storages, and each dagit+daemon combo is pointing at the right storage (via a different dagster.yaml), then changing the port is all you need
v
@daniel I have 2 different folders. One for production and second for development. Each project has different virtual environment. First dagit launched on port 3000 and second on 3001. How do I point the daemon to the correct storage?will it automatically point to the storage in the DAGSTER_HOME folder?
d
they would need to have different DAGSTER_HOME values i think
you could start them up with
DAGSTER_HOME=<your folder> dagster-daemon run
v
Yes. I'm starting them in this way
d
it will use DAGSTER_HOME to load your dagster.yaml which contains instructions on how to load the storage
v
Okay. Thanks
d
i think the default place it looks for your storage if you're using the sqlite storage is relative to DAGSTER_HOME
👍 1