Joshi,
yes, do report back on how things go!

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Thu, Jan 20, 2011 at 6:50 PM, Joshi Hemant - hjoshi
<[email protected]> wrote:
> Thanks Peter. I will upgrade to 1.2 and update the neo4j properties file. 
> Since the graph was created with 0.8 snapshot, I hope it will be compatible 
> with 1.2 release.
> -Hemant
> ________________________________________
> From: [email protected] [[email protected]] on behalf 
> of Peter Neubauer [[email protected]]
> Sent: Thursday, January 20, 2011 10:45 AM
> To: Neo4j user discussions
> Subject: Re: [Neo4j] Neo4j REST server in readonly mode
>
> Joshi,
> the 0.8 REST server is not longer acive and merged into the Neo4j
> Server, so we are talking about the neo4j.properties in the conf/
> directory of the server download.
>
> Setting the server into readonly mode will not block the other process
> accessing the files, since they will not be locked by the Server
> incstance. )I have not tested this though), So your scenario should
> work with the Neo4j 1.2. download and some neo4j.properties tweaks.
>
> HTH!
>
> Cheers,
>
> /peter neubauer
>
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
>
> http://www.neo4j.org               - Your high performance graph database.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>
>
>
> On Thu, Jan 20, 2011 at 5:36 PM, Joshi Hemant - hjoshi
> <[email protected]> wrote:
>> Thanks for the replies. I am not sure I understand the 2 options you have 
>> listed Peter. Let me just write about the no-JMX option first. Where do you 
>> suggest I change the neo4j.properties file? I suppose you mean the neo4j 
>> database directory. But then the neo4j database would be read-only for both 
>> the separate java process and REST server. Am I right? The other possibility 
>> is the neo4j-rest-standalone-0.8-SNAPSHOT/conf folder which has wrapper.conf 
>> file.
>>
>> As it stands now, if I start the REST server (out of the box), I can write 
>> my standalone programs to use EmbeddedReadOnlyGraphDatabase and that works 
>> just fine. I am trying to reverse the roles here so that REST is read-only 
>> and the standalone program could use the EmbeddedGraphDatabase.
>>
>> -Hemant
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On 
>> Behalf Of Peter Neubauer
>> Sent: Thursday, January 20, 2011 4:00 AM
>> To: Neo4j user discussions
>> Subject: Re: [Neo4j] Neo4j REST server in readonly mode
>>
>> Actually,
>> this is not quite true. If you really want it, you can start the
>> server readonly and disabling caches in order to to get stale data by
>> setting it in neo4j.properties as
>>
>> read_only = true
>> cache_type = none
>>
>> see http://docs.neo4j.org/chunked/snapshot/operations-monitoring.html#_jmx
>> (just added the clear() to the docs, will come up in some minutes
>> through the build process)
>>
>> This will, however, result in exceptions being thrown in the mutating
>> operations on REST level.
>>
>> Another way to trigger a readonly mode updating the cache is to use
>> JMX. There is a cache.clear() method that you can trigger, making the
>> REST readonly instance eventually consistent (refreshing) at intervals
>> you decide.
>>
>> Code is something along the lines of
>>
>> Neo4jManager manager = new Neo4jManager( graphDb.getManagementBean(
>> Kernel.class ) );
>> long nodeIDsInUse    = manager.getCacheBean().clear();
>>
>> And of course you can call that via JMX remotely from your inserting system.
>>
>> Would that be something of use?
>>
>> Cheers,
>>
>> /peter neubauer
>>
>> GTalk:      neubauer.peter
>> Skype       peter.neubauer
>> Phone       +46 704 106975
>> LinkedIn   http://www.linkedin.com/in/neubauer
>> Twitter      http://twitter.com/peterneubauer
>>
>> http://www.neo4j.org               - Your high performance graph database.
>> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
>>
>>
>>
>> On Wed, Jan 19, 2011 at 10:11 PM, Jim Webber <[email protected]> wrote:
>>> Hi Hemant,
>>>
>>> Bringing up the REST API in readonly mode is not possible I'm afraid.
>>>
>>> We could consider adding it to the Neo4j server, depending on the effort  
>>> required and whether there are other workarounds.
>>>
>>> Jim
>>> _______________________________________________
>>> Neo4j mailing list
>>> [email protected]
>>> https://lists.neo4j.org/mailman/listinfo/user
>>>
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>> ***************************************************************************
>> The information contained in this communication is confidential, is
>> intended only for the use of the recipient named above, and may be legally
>> privileged.
>>
>> If the reader of this message is not the intended recipient, you are
>> hereby notified that any dissemination, distribution or copying of this
>> communication is strictly prohibited.
>>
>> If you have received this communication in error, please resend this
>> communication to the sender and delete the original message or any copy
>> of it from your computer system.
>>
>> Thank You.
>> ****************************************************************************
>>
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to