Date
1 - 3 of 3
Cache expiration time
Ohad Pinchevsky <ohad.pi...@...>
Hi, I am trying to increase/disable the cache expiration time using the cache.db-cache-time property I changed the value to 0 and restarted the Gemlin server, but it seems it is not working (based on execution time, first time slow, second fast, waiting, third time slow again). What am I missing? Thanks, Ohad |
|
Jason Plurad <plu...@...>
According to the docs, it is a GLOBAL_OFFLINE configuration setting: "These options can only be changed for the entire database cluster at once when all instances are shut down." You'll need to set the value using the ManagementSystem. If you want to do it through a remote console session, you could try something like this:
At this point, the value is set but it is not active. You need to restart the Gremlin Server so the new configuration is picked up. Another thing you should be aware of when working with GLOBAL_OFFLINE properties, is that you can't change the value if there are multiple open graph instances -- for example, you have the Gremlin Server started and also make a direct connection with JanusGraphFactory.open(). You should shutdown all connections so there is only 1 remaining (you can verify with mgmt.getOpenInstances()) before attempting to set the configuration property. -- Jason On Tuesday, August 8, 2017 at 7:42:17 AM UTC-4, Ohad Pinchevsky wrote:
|
|
Ohad Pinchevsky <ohad.pi...@...>
Thanks! On Tuesday, August 8, 2017 at 6:02:17 PM UTC+3, Jason Plurad wrote:
|
|