Hello.
It utilizes transactions (JanusGraph-level) internally:
*
https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/diskstorage/idmanagement/ConsistentKeyIDAuthority.java#L260
*
https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/diskstorage/idmanagement/ConsistentKeyIDAuthority.java#L285
*https://github.com/JanusGraph/janusgraph/blob/1c864333e709a4445c049b051855d726decb56d8/janusgraph-core/src/main/java/org/janusgraph/diskstorage/util/BackendOperation.java#L142
See configuration options for tuning:
https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/graphdb/configuration/GraphDatabaseConfiguration.java#L700
Also retries in case id block is already allocated in the backend. Using multi-dc setup with default options is probably safe (?) - as far as I can tell from https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-cql/src/main/java/org/janusgraph/diskstorage/cql/CQLConfigOptions.java - by default system operations (transactions too) will utilize QUORUM consistency in a cross-DC manner. You will have to use NetworkTopologyStrategy in JanusGraph configuration (SimpleStrategy by default for Janus keyspaces).
Best regards,
Evgenii Ignatev.
--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/a1b77ea0-bf53-4303-ba6a-44fe9d1def30o%40googlegroups.com.
-- Best regards, Evgeniy Ignatiev.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/a1b77ea0-bf53-4303-ba6a-44fe9d1def30o%40googlegroups.com.
Yes, you are correct, as far I can tell (not an expert in this part too) - each iteration of attempt to claim block uses randomization to create a partition key, which starts from - https://github.com/JanusGraph/janusgraph/blob/master/janusgraph-core/src/main/java/org/janusgraph/diskstorage/idmanagement/ConsistentKeyIDAuthority.java#L185
Best regards,
Evgenii Ignatev.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/0286e8ee-54e1-4a22-94d7-324dea7a7aa0o%40googlegroups.com.