How/where to change ids.block-size, cache.db-cache-time etc


ying...@...
 

Hello,

I am using janusgraph-full-0.5.2 of build in cassandra and elastic search. And seems I was not able to change the default value for these variables 
I
 tried both of the followings :

1) Directly modify the property file janusgraph-cql-es.properties by : ids.block-size = 60000000

2) Use Janusgraph Management via gremlin client:

gremlin> :remote connect tinkerpop.server conf/remote.yaml session

==>Configured localhost/127.0.0.1:8182-[c5020a94-0534-484e-99ad-5443b2b4d240]

gremlin> :remote console

==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[c5020a94-0534-484e-99ad-5443b2b4d240] - type ':remote console' to return to local mode

gremlin> graph = JanusGraphFactory.open('conf/janusgraph-cql-es.properties')

==>standardjanusgraph[cql:[127.0.0.1]]

gremlin> graph.getOpenTransactions().forEach { tx -> tx.rollback() }

==>null

gremlin> 

gremlin> mgmt = graph.openManagement()

==>org.janusgraph.graphdb.database.management.ManagementSystem@5b34815a

gremlin> mgmt.getOpenInstances().forEach {

......1>   if (it.reverse().take(1) != ")") {

......2>     mgmt.forceCloseInstance(it)

......3>   }

......4> }

==>null

gremlin> mgmt.set('ids.block-size',60000000)

Cannot change offline config option [root.ids.block-size] since multiple instances are currently open:



In my germlin-server.yaml, here is how I define the graph: 

graphs: {
graph: conf/janusgraph-cql-es.properties
}

Thanks


Yingjie Li <ying...@...>
 

mystery solved,  should be done via JanusGraphManagement, but need to do mgmt.commit() and reopen graph as well as mgmt before setting the values.


On Thursday, September 24, 2020 at 8:07:27 AM UTC-4 yi...@... wrote:
Hello,

I am using janusgraph-full-0.5.2 of build in cassandra and elastic search. And seems I was not able to change the default value for these variables 
I
 tried both of the followings :

1) Directly modify the property file janusgraph-cql-es.properties by : ids.block-size = 60000000

2) Use Janusgraph Management via gremlin client:

gremlin> :remote connect tinkerpop.server conf/remote.yaml session

==>Configured localhost/127.0.0.1:8182-[c5020a94-0534-484e-99ad-5443b2b4d240]

gremlin> :remote console

==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[c5020a94-0534-484e-99ad-5443b2b4d240] - type ':remote console' to return to local mode

gremlin> graph = JanusGraphFactory.open('conf/janusgraph-cql-es.properties')

==>standardjanusgraph[cql:[127.0.0.1]]

gremlin> graph.getOpenTransactions().forEach { tx -> tx.rollback() }

==>null

gremlin> 

gremlin> mgmt = graph.openManagement()

==>org.janusgraph.graphdb.database.management.ManagementSystem@5b34815a

gremlin> mgmt.getOpenInstances().forEach {

......1>   if (it.reverse().take(1) != ")") {

......2>     mgmt.forceCloseInstance(it)

......3>   }

......4> }

==>null

gremlin> mgmt.set('ids.block-size',60000000)

Cannot change offline config option [root.ids.block-size] since multiple instances are currently open:



In my germlin-server.yaml, here is how I define the graph: 

graphs: {
graph: conf/janusgraph-cql-es.properties
}

Thanks