Configuring Gremlin Server to use string IDs

378 views
Skip to first unread message

Artur Müller

unread,
Apr 4, 2021, 7:09:35 PM4/4/21
to Gremlin-users

Hi!

The issue: I am currently investigating how the Gremlin Server Docker image could be configured to allow for string IDs. I can't seem to find any documentation for this even though it seems that TinkerGraph allows for this. Any pointers would be greatly appreciated!

Background: We're using AWS Neptune and we want to have local DB to run our test suite against. We're aware that there are some differences, but for now this is a fine compromise as Gremlin Server seems to work perfectly except of the IDs issue which are string in Neptune but Longs in the unconfigured Gremlin Server image.

Thanks!
Art

Kelvin Lawrence

unread,
Apr 4, 2021, 8:23:32 PM4/4/21
to Gremlin-users
This topic actually came up in a question here a few days ago - maybe 2 questions before this one.

There are some instructions here on how to configure a Gremlin Server with TinkerGraph to use String IDs.

I hope this helps. Let me know if anything is not clear or does not work


Cheers
Kelvin

Artur Müller

unread,
Apr 5, 2021, 3:27:46 AM4/5/21
to Gremlin-users
Hi Kevin — thank you for such a quick response!

I think I saw the discussion you are speaking of, but what I was hoping for is that the official Docker image has some (perhaps not well documented) config options that I can pass it to make it play nice with our codebase.

Something like:
docker run tinkerpop/gremlin-server -e VERTEX_ID_MANAGER='ANY'

But I guess it seems like the easiest way is to just use a custom image?

Stephen Mallette

unread,
Apr 5, 2021, 6:38:05 AM4/5/21
to gremli...@googlegroups.com
I think you'd have to do a custom image. In general I think it would be nice to see our "docker stuff" a bit more configurable from the command line. Everything from our internal stuff like "docker/build.sh" arguments to better control maven to the more external facing images for supplying custom configurations all could use some work. For the latter case, right now it looks like we only allow this sort of command:

$ docker run tinkerpop/gremlin-server:3.4.10 conf/gremlin-server-secure.yaml

I suppose the idea of the image was to be just good enough to quickly get Gremlin Server going with a TinkerGraph but perhaps folks are using it for more than that these days?


--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/05fb1c78-2752-4268-91cc-140c8498c865n%40googlegroups.com.

Artur Müller

unread,
Apr 5, 2021, 10:05:48 AM4/5/21
to Gremlin-users
Hi!

Gotcha, custom image it is.

Yeah, it would be amazing to make it a little more configurable so that all the consumer needs to do to start working with it is to supply some params.

I've seen several similar questions around the web like I had — mostly motivated by people using Neptune it seems.

We've been using localstack pro that emulates Neptune for our tests which works but it has been buggy as hell, so — to keep my sanity — I started using TinkerPop and it is a LOT more reliable. Definitely worth setting up that custom image. But if all I needed to do was to add a param to the docker image that would be amazingly ergonomic.

Stephen Mallette

unread,
Apr 5, 2021, 11:20:15 AM4/5/21
to gremli...@googlegroups.com
We don't currently have a lot of docker expertise with core committers right now that I know of. If you or others would like to contribute something to any of the docker bits TinkerPop has, please feel free to propose some changes and it could be considered. Thanks.

Artur Müller

unread,
Apr 6, 2021, 4:23:52 AM4/6/21
to Gremlin-users
Great, I will keep that in mind! Which repo should these proposed changes be made to?

Stephen Mallette

unread,
Apr 6, 2021, 5:35:04 AM4/6/21
to gremli...@googlegroups.com
The official Apache TinkerPop repository is here:


Stephen Mallette

unread,
Apr 6, 2021, 5:35:42 AM4/6/21
to gremli...@googlegroups.com
The official Apache TinkerPop repository is here:


Artur Müller

unread,
Apr 6, 2021, 11:00:17 AM4/6/21
to Gremlin-users
Thank you!
Reply all
Reply to author
Forward
0 new messages