Is it possible to run two server at a time ?

Asked by Kinly

hi...

is it possible to run two server at a time ?
if yes then how?
is there any documentation ?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Ravindra Mekhiya(OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) said :
#1

I'm not so expert but I'm testing openERP like you, You can have more than one server installation on you server, the problem is that you have to set up the port for not using the same (both client and server), ex:

server A: use port 8069, 8070, 8080 (for web client), and maybe 8021 for Document management
server B: for ex: use port 18069, 18070, 18080, and maybe 18021

Your client must configured to ask at the right port in "connect" you can set up easyly.

After that I think that the problem is create more than one service to automatic start up, from now I use a script for manual launch of the server, in the folder, so my tip is create a folder for every server and a script to launch the server instead of service)
using:
server_folder/bin/openerp-server.py -h

you can see all the parameters you can give to set up you port.
for service use configuration files to set up ports.
Hope usefull

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) said :
#2

And ...
for postgres, I have only one installation of db server so the database you create are all in the default instances of PG... (you could use two different user in postgres for don't permit access from A server to B Databases

Revision history for this message
Best Ravindra Mekhiya(OpenERP) (rme-openerp) said :
#3

Hello Kinly,

For run two server at a time ...

1). first server use this command ...
     e.g. ./openerp-server.py --port=10250 (Port No. you can use any one)
2). Second server use this command ...
     e.g. ./openerp-server.py --net_port=10251 (Port No. you can use any one)

But keep in mind both port name must not be the same.
And please use port name more than 1000 cause below 1000 it will be used by other services.

Thanks.

Revision history for this message
Kinly (kinlyfordy4u) said :
#4

now I can run 2 server at a time.
thanks for fast help.

Revision history for this message
Kinly (kinlyfordy4u) said :
#5

Thanks RME(OpenERP), that solved my question.