You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Oleks K <ol...@gmail.com> on 2018/04/19 07:17:48 UTC

Running Ignite as Windows service

Hi Team,

We are deploying Ignite as part of distributed system on Windows 2012 R2
servers.
We are going to start all processes as Windows services.

What is a recommended approach to do this for Ignite?
Should we use some service wrapper? Ignite.NET?
(All our clients are java processes)

Do you see any issues with running Ignite as windows service?

BR, Oleksandr



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Running Ignite as Windows service

Posted by Olexandr K <ol...@gmail.com>.
Thanks Andrei

I'll try this

On Thu, Apr 19, 2018 at 4:36 PM, aealexsandrov <ae...@gmail.com>
wrote:

> Hi,
>
> Maybe next small guide for ignite 2.4 could help you (possible some steps
> could be out of date):
>
> 1)Download and unpack Ignite to IGNITE_HOME
> 2)Download Java Service Wrapper for your OS from
> http://wrapper.tanukisoftware.org (I used wrapper-delta-pack-3.5.34.zip)
> 3)Unpack it to SERVICE_WRAPPER_HOME
> 4)Copy SERVICE_WRAPPER/bin/ to the IGNITE_HOME/bin
> 6)Copy SERVICE_WRAPPER/lib/ to the IGNITE_HOME/libs
> 7)Copy SERVICE_WRAPPER/conf/wrapper.conf to IGNITE_HOME/config folder
> 8)create IGNITE_HOME/logs folder
>
> Edit the following lines in IGNITE_HOME/config/wrapper.conf
>
> 1)wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
> 2)fill the "wrapper.java.classpath" parameters with ingite-core-x.x.x.jar
> and jar files from IGNITE_HOME/libs folder (see example)
> 3)edit wrapper configuration JVM parameters if you need
> 4)wrapper.app.parameter.1=org.apache.ignite.startup.cmdline.
> CommandLineStartup
> 5)wrapper.app.parameter.2=[config], to use non default Ignite
> configuration
>
> Example:
>
> wrapper.conf
> <http://apache-ignite-users.70518.x6.nabble.com/file/t1704/wrapper.conf>
>
> For Windows you need to use that command to install service:
> %IGNITE_HOME%/bin/wrapper.exe -i %IGNITE_HOME%/config/wrapper.conf
>
> You can start service in the Control Panel -> Administration -> Services or
> use that command:
> %IGNITE_HOME%/bin/wrapper.exe -t %IGNITE_HOME%/config/wrapper.conf
>
> Use Control Panel or that command for stop Ignite service:
> %IGNITE_HOME%/bin/wrapper.exe -p %IGNITE_HOME%/config/wrapper.conf
>
> For uninstall Ignite service use this command:
> %IGNITE_HOME%/bin/wrapper.exe -r %IGNITE_HOME%/config/wrapper.conf
>
> In case of success you will have next log:
>
> wrapper.log
> <http://apache-ignite-users.70518.x6.nabble.com/file/t1704/wrapper.log>
>
> Best regards,
> Andrei
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Running Ignite as Windows service

Posted by aealexsandrov <ae...@gmail.com>.
Hi,

Maybe next small guide for ignite 2.4 could help you (possible some steps
could be out of date):

1)Download and unpack Ignite to IGNITE_HOME
2)Download Java Service Wrapper for your OS from
http://wrapper.tanukisoftware.org (I used wrapper-delta-pack-3.5.34.zip)
3)Unpack it to SERVICE_WRAPPER_HOME
4)Copy SERVICE_WRAPPER/bin/ to the IGNITE_HOME/bin
6)Copy SERVICE_WRAPPER/lib/ to the IGNITE_HOME/libs
7)Copy SERVICE_WRAPPER/conf/wrapper.conf to IGNITE_HOME/config folder
8)create IGNITE_HOME/logs folder

Edit the following lines in IGNITE_HOME/config/wrapper.conf

1)wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
2)fill the "wrapper.java.classpath" parameters with ingite-core-x.x.x.jar
and jar files from IGNITE_HOME/libs folder (see example) 
3)edit wrapper configuration JVM parameters if you need
4)wrapper.app.parameter.1=org.apache.ignite.startup.cmdline.CommandLineStartup
5)wrapper.app.parameter.2=[config], to use non default Ignite configuration

Example:

wrapper.conf
<http://apache-ignite-users.70518.x6.nabble.com/file/t1704/wrapper.conf>  

For Windows you need to use that command to install service:
%IGNITE_HOME%/bin/wrapper.exe -i %IGNITE_HOME%/config/wrapper.conf

You can start service in the Control Panel -> Administration -> Services or
use that command:
%IGNITE_HOME%/bin/wrapper.exe -t %IGNITE_HOME%/config/wrapper.conf

Use Control Panel or that command for stop Ignite service:
%IGNITE_HOME%/bin/wrapper.exe -p %IGNITE_HOME%/config/wrapper.conf

For uninstall Ignite service use this command:
%IGNITE_HOME%/bin/wrapper.exe -r %IGNITE_HOME%/config/wrapper.conf

In case of success you will have next log:

wrapper.log
<http://apache-ignite-users.70518.x6.nabble.com/file/t1704/wrapper.log>  

Best regards,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Running Ignite as Windows service

Posted by Oleks K <ol...@gmail.com>.
Yeah, I saw that post.
Ideally I'd like to run java Ignite as all other processes in our system are
java ones.
We are using the same approach for monitoring (JMX), etc



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Running Ignite as Windows service

Posted by Roman Guseinov <ro...@gromtech.ru>.
Hi Oleksandr,

It looks like you are able to install Ignite.NET node as a Windows Service
using the following command [1]:

Apache.Ignite.exe /install

Best Regards,
Roman

[1]
https://stackoverflow.com/questions/39360311/how-to-run-apache-ignite-as-daemon-on-windows



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/