Running two or more Raven DB Windows services on the same server

1,301 views
Skip to first unread message

Jim Baltika

unread,
Aug 13, 2012, 2:36:34 PM8/13/12
to rav...@googlegroups.com
Hi,
I need to run Raven DB as windows services for different builds for different launched projects  on 888 and 960 versions also I want one experimental version like 2062 running as well. So questions is how do I run three or more Raven DB windows services on the same  server? The ' Raven.Server.exe /install ' will work on one of them right now. Any ideas?

J.B


Kijana Woodard

unread,
Aug 13, 2012, 4:53:00 PM8/13/12
to rav...@googlegroups.com
Set different ports in the raven.server.exe.config file.

Jim Baltika

unread,
Aug 13, 2012, 7:56:58 PM8/13/12
to rav...@googlegroups.com
Hi Kijana,
I am not newbie to the ravendb :) I mean try to replicate problem. Get two instances of Raved DB builds, make config change like one port 40000 and another  build on 50000. Run cmd 'Raven.Server.exe /install' for the first build. it will install the windows service named 'Raven'. try repeat the same step for second build. The message in cmd prompt will say something like that "The services is already running". The problem is that the service name seems to me is hard-coded in service installer or I can't find way around. I looked to the code and could not find the way to pass custom service name. This way I could install with name Raven1 and second Raven2. 

Long time ago Oren sad that was fixed, but I never had time to verify or find out how its work.

J.B

Kijana Woodard

unread,
Aug 13, 2012, 8:09:55 PM8/13/12
to rav...@googlegroups.com

Wasn't near a PC. Thought maybe it was a simple issue since config wasn't mentioned. That plus old thread link make a big difference on the question.

Still not near pc. In the forum it talks about the service name. Have you tried stopping the first installed service before installing the second? I would imagine it has to run under the config port, otherwise that's a major bug. Maybe it's still checking the service name. Anything in the source code for the installer to give hints?

Juozas Baltikauskas

unread,
Aug 13, 2012, 8:11:26 PM8/13/12
to rav...@googlegroups.com
Thanks for effort man .Appreciate. J.B

Kijana Woodard

unread,
Aug 13, 2012, 8:48:09 PM8/13/12
to rav...@googlegroups.com
Got to a PC.

Looks like /service-name was the fix mentioned in the thread.

also was on Raven.Server.exe /help

worked:

Inline image 1
image.png

Juozas Baltikauskas

unread,
Aug 13, 2012, 9:05:28 PM8/13/12
to rav...@googlegroups.com
Cool.  Looks like I need to get  source code for new  build. It should work at least for new builds. Great. Thanks man J.B
image.png

Kijana Woodard

unread,
Aug 13, 2012, 9:14:24 PM8/13/12
to rav...@googlegroups.com

I was using 960

image.png

Casper Bollen

unread,
Sep 24, 2014, 8:01:31 AM9/24/14
to rav...@googlegroups.com
Just too make things more clear, you can definitely run two instances of RavenDb as local windows services at the same time. Only you have to specify a different port in the Raven.Server.exe.config file (for the second service or both) and you have to rename the second instance using the service-name= parameter, like for example:

Raven.Server.exe /install /service-name=RavenDBTest

Best regards -- Casper

Juozas Baltikauskas

unread,
Sep 24, 2014, 9:12:36 AM9/24/14
to rav...@googlegroups.com
Yop. We running a couple dev instances for testing purposes(different version for clients)

--
You received this message because you are subscribed to a topic in the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ravendb/ZHAYzaj4OWA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kijana Woodard

unread,
Sep 24, 2014, 10:48:24 AM9/24/14
to rav...@googlegroups.com
Wow. Talk about a zombie thread. [raised from the dead]. :-D

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages