Block ID pool allocation

15 views
Skip to first unread message

rafi ansari

unread,
Jul 5, 2020, 4:14:36 AM7/5/20
to JanusGraph users
Hi

I want to set my Janusgraph instance to read-only mode and stop id pool allocation to the instance.

For read-only mode, I can use storage.read-only=true. 
But is there any way to stop the ID pool allocation to the instance?

TIA

Rafi

sparshneel chanchlani

unread,
Jul 5, 2020, 4:21:59 AM7/5/20
to janusgra...@googlegroups.com
Rafi,
There is also an option for creating read only transactions TransactionBuilder  take a look.  Instead doing this on storage backend.

--
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/3c5e2cbb-1749-4a78-b2ea-bca893ca8608o%40googlegroups.com.

rafi ansari

unread,
Jul 5, 2020, 7:33:34 AM7/5/20
to JanusGraph users
Hi Sparshneel

Thanks for suggestion. I explored the transactionbuilder read-only function. I have two doubts though .
1. What is the difference between setting storage as read-only and transaction read-only?
2. How do make sure that ID pool allocation is blocked on the Janusgraph read-only instance?

Because what I'm trying to achieve here is setting 2 nodes that will only act as read only nodes for Janusgraph.

Thanks

Rafi

sparshneel chanchlani

unread,
Jul 5, 2020, 7:45:38 AM7/5/20
to janusgra...@googlegroups.com
Rafi,
with graph instance you could create objects like vertexLables etc.. ID allocation only happens when u request to create. Read-Only transaction will through exception when u send create request to Janusgraph.

--
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.

sparshneel chanchlani

unread,
Jul 5, 2020, 7:52:24 AM7/5/20
to janusgra...@googlegroups.com
On Sun, Jul 5, 2020, 5:15 PM sparshneel chanchlani <sparshneel...@gmail.com> wrote:
Rafi,
with graph instance you could create objects like vertexLables etc.. ID allocation only happens when u request to create. Read-Only transaction will throw exception when u send create request to Janusgraph.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages