Multiple data server service instances

Answered
Andrea Fabbri asked on February 3, 2023

Hi,
we would like to run two different data server instaces on the same server. We are not able to install the second instance of the service.
We tried in this way:
sc create FlexmonsterDataServer38 binPath= "%~dp0flexmonster-data-server-38.exe flexmonster-config-38.json --service"
sc failure FlexmonsterDataServer38 actions= restart/60000/restart/60000/""/60000 reset= 86400
sc start FlexmonsterDataServer38
sc config FlexmonsterDataServer38 start=delayed-auto
and 
sc create FlexmonsterDataServer38 binPath= "%~dp0flexmonster-data-server.exe flexmonster-config-38.json --service"
sc failure FlexmonsterDataServer38 actions= restart/60000/restart/60000/""/60000 reset= 86400
sc start FlexmonsterDataServer38
sc config FlexmonsterDataServer38 start=delayed-auto
In both cases the second serivce instance doesn't start. Any suggestions?
Thanks,
Andrea

19 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 6, 2023

Hello, Andrea!
 
Thank you for contacting us.
 
Kindly note that to run multiple Flexmonster Data Server instances, you need to install them as services. In this case, the Admin Panel would be available only for the first one.
 
To run the service, please modify the command in service-install.bat file as follows:

sc create YourServiceName binPath= "%~dp0flexmonster-data-server.exe -s absolute path to flexmonster-config.json"

Please note that for each Data Server instance, you need to change the service name in .bat file and port number in the flexmonster-config.json.
 
Hope you will find our answer helpful.
Feel free to contact us in case of any other questions.
 
Kind regards,
Solomiia

Public
Andrea Fabbri February 7, 2023

Hello Solomiia thank for your answer, I tried to modify service-install.bat as you tell me, the new service is created but it doesn't start I attach the screenshot of the error. Another thing I've noted is that just changing the line you told me the orginal flexmonster service is deleted, I don't want it, so I've changed also the line above where the script try to delete existing services.
Do you have some advice?
Andrea 

Attachments:
flex_Error.png

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 8, 2023

Hello, Andrea!
 
Thank you for your swift response.
 
Our team hasn't managed to reproduce the described behavior on our side.
Could you please provide us with the .bat file you are running? This would help us greatly to continue the investigation.
 
Looking forward to hearing from you.
 
Regards,
Solomiia

Public
Andrea Fabbri February 8, 2023

Hello, here it is our service-install.bat

Attachments:
service-install.txt

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 9, 2023

Hello, Andrea!
 
Thank you for the attachments.
 
We have modified your .bat file, so now it creates the FlexmonsterDataServer38 process on our side. Please try the attached service-install-38.txt and let us know if it works on your side.
Kindly note that the port in flexmonster-config-38.json should be free white running the .bat file.
 
Hope you will find our answer helpful.
Looking forward to hearing your feedback.
 
Regards,
Solomiia

Attachments:
service-install-38.txt

Public
Andrea Fabbri February 9, 2023

Hello, I tried your service-install-38.bat but the result is always the same.
I tried to create the service without specifying the config file and it was created without problems. I think the problem is with the config file.
I attach a screenshot of the config file, if it could help you.
Have a good day,
Andrea

Attachments:
config.png

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 13, 2023

Hello, Andrea!
 
Thank you for your response and for the provided config file.
 
Our team assumes that port 9038, used in the config.json file, may be occupied by another process.
We also suggest running two Data Server .exe files separately to check the config file.
 
Hope it helps.
Do not hesitate to contact us in case of any other questions.
 
Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 22, 2023

Hello, Andrea!

Hope you are doing well.

Our team is wondering if you had a chance to check if the ports used in config.json are available. Could you please let us know if it helps?

Looking forward to hearing from you.

Regards,
Solomiia

Public
Andrea Fabbri February 22, 2023

Hello,
sorry for the late but I haven't had time to try it yet, as soon as I have an answer I will post it.
Have a good day,
Andrea

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster February 23, 2023

Hello, Andrea!

Thank you for getting back to us.

Your feedback is valuable to our team, so we'll be waiting for the following updates on the case.

Looking forward to hearing from you.

Regards,
Solomiia

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 2, 2023

Hello, Andrea!

Hope you are having a great week.

Just checking in to ask if there are any updates on the case.

Looking forward to your response.

Regards,
Solomiia

Public
Andrea Fabbri March 8, 2023

Hello Solomiia sorry for the late,
I made some test and now the service is starting and responding correctly only if I put one index in the config file, if I put two or more indexes I got the same error. 
Do you have some advice?
Have a good day,
Andrea

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 10, 2023

Hello, Andrea!

Thank you for getting back to us.
 
Our team hasn't managed to reproduce the described behavior while adding multiple indexes to the service.
We have attached the flexmonster-config-38.json file used in our investigation. Please look through the provided config file and let us know if it helps.
 
Feel free to contact us in case of any other questions.
 
Regards,
Solomiia

Public
Andrea Fabbri March 14, 2023

Thanks Solomiia for the answer,
I will make some tests with your config file then I will let you know.
Have a good day,
Andrea

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 15, 2023

Hello, Andrea!

Thank you for your response.

We'll be waiting for the following updates on the case.

Feel free to contact us in case of any other questions.

Kind regards,
Solomiia

Public
Andrea Fabbri March 21, 2023

Hi Solomiia, I tried to run multiple instances on my local machine and all works fine. On the server I got always the same if i run more than one index. 
What should it be?
Thank, Andrea
 
 
 

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 22, 2023

Hello, Andrea!

Thank you for getting back to us.

We are glad to hear that multiple instances of the Data Server are running fine on the local machine. We also kindly suggest double-checking if everything is moved correctly from the local machine to the server.

Feel free to contact us in case of any other questions.

Regards,
Solomiia

Public
Andrea Fabbri March 31, 2023

Hi Solomiia, we after putting same name to each dataServer.exe file each instace works fine.
Thanks a lot for your advices.
Andrea

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster March 31, 2023

Hello, Andrea!

Thank you for getting back to us.

We are glad to hear that multiple instances of the Data Server are running well.

Feel free to contact us in case of any other questions.

Regards,
Solomiia

Please login or Register to Submit Answer