https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Anthony Reksoatmodjo

01/05/2023, 8:04 PM
Is there any documentation or examples of the GRPC server being extended to accomodate additional endpoints? MY company has containerized our code server, but we don't want to put another server in the same container.
🤖 1
d

daniel

01/06/2023, 10:31 PM
Hi Anthony - do you mean you want the same running container to be both running the dagster grpc server and some other server at the same time? Or do you want the same image to be able to support other entry points besides just the Dagster gRPC server?
The latter is I think just a matter of overriding the entrypoint of the image which is easy to do in a system like docker compose (or changing the arguments that you pass to docker run). The former is a bit trickier and I don't think i've seen a request for it before - there are some general docker docs for it here though that aren't dagster specific: https://docs.docker.com/config/containers/multi-service_container/
a

Anthony Reksoatmodjo

01/06/2023, 11:59 PM
Thanks for the reply! Our hope is the former, although I think the latter is not a bad alternative.
@daniel For clarification, the GRPC server points at a local repo, but we want to modify code in that repo over the network, after the GRPC server has been started. How can we extend the GRPC server with additional endpoints? For example, we want to modify a config variable in a yaml file remotely. It would be nice to not have to create an additional server on the same machine.
d

daniel

01/09/2023, 7:34 PM
We don't currently have a built-in way to extend the gRPC server with additional endpoints - is that something you'd be willing to file a feature request for?
a

Anthony Reksoatmodjo

01/09/2023, 8:24 PM
I could do that. Is that something others might want?
d

daniel

01/09/2023, 8:24 PM
it's not a request i've seen before - I'd be tempted to run two separate gRPC servers instead
a

Anthony Reksoatmodjo

01/09/2023, 8:51 PM
Hm that makes sense. Thanks for the insight. Why does dagster use GRPC for communication anyways?
d

daniel

01/09/2023, 9:06 PM
they let us run user code in a separate environment from system code - so we can avoid dependency issues and keep different code locations isolated from messing each other up and messing dagit up
c

cyberjar09

12/06/2023, 9:48 AM
we had a similar requirement, i.e., extend the code location to either expose another grpc method or yet another server on another port. Intention is to add some custom code for our very specific requirements
53 Views