https://dagster.io/ logo
#dagster-support
Title
# dagster-support
v

Vlad Efanov

06/14/2022, 6:00 AM
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

claire

06/14/2022, 4:16 PM
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

Vlad Efanov

06/16/2022, 11:23 AM
@claire Hey. It doesn't work for me. dagster version 0.13.16
c

claire

06/16/2022, 5:10 PM
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

Vlad Efanov

06/16/2022, 5:14 PM
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

daniel

06/16/2022, 5:18 PM
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

Vlad Efanov

06/16/2022, 5:32 PM
@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

daniel

06/16/2022, 5:34 PM
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

Vlad Efanov

06/16/2022, 5:35 PM
Yes. I'm starting them in this way
d

daniel

06/16/2022, 5:35 PM
it will use DAGSTER_HOME to load your dagster.yaml which contains instructions on how to load the storage
v

Vlad Efanov

06/16/2022, 5:36 PM
Okay. Thanks
d

daniel

06/16/2022, 5:36 PM
i think the default place it looks for your storage if you're using the sqlite storage is relative to DAGSTER_HOME
👍 1