Two instances - one database

52 views
Skip to first unread message

Leszek Bober

unread,
Jan 20, 2021, 7:47:28 AM1/20/21
to iDempiere

Hi 

I need run two application (7.1) instances on one virtual server but diffirent IP and external DB server and the same database (Eg. App1 on IP 192.168.10.10, App2 on IP 20.20.10.10, DB 20.20.10.111) I have two app dir on virtual server:

  1. App1 on IP 192.168.10.10
    dir: /opt/idempiere-192 (idempiere-server.sh has IDEMPIERE_HOME=/opt/idempiere-192, TELNET_PORT=12612, WEB_PORT=8080, ADEMPIERE_APPS_SERVER= 192.168.10.10
    /etc/init.d/idempiere-192 has IDEMPIERE_HOME=/opt/idempiere-192
  2. App2 on IP 20.20.10.10
    dir: /opt/idempiere-20 (idempiere-server.sh has IDEMPIERE_HOME=/opt/idempiere-20, TELNET_PORT=12613, WEB_PORT=8082,  ADEMPIERE_APPS_SERVER= 20.20.10.10
    /etc/init.d/idempiere-20 has IDEMPIERE_HOME=/opt/idempiere-20

Will this configuration work properly?


Regards

Leszek Bober

Hiep Lq

unread,
Jan 20, 2021, 8:59:49 AM1/20/21
to Mohemmed Bilal Ilyas
it run well but you can improve something

1. you can save one ip by using http proxy (haproxy or ngix,..)
2. some function (2pack) use temp file via template /tmp/useid/... so conflict can be happen when 2 instance on same server user one database.
maybe docker can resolve

Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/9f9f64a1-8964-4cf2-b319-cbb21a17e624n%40googlegroups.com.

Leszek Bober

unread,
Jan 20, 2021, 9:51:26 AM1/20/21
to iDempiere
Thx HiepLq,
Are you suggesting to configure a proxy and each App server connects to a DB with a different DB_User?

Regards
Leszek Bober

Hiep Lq

unread,
Jan 20, 2021, 9:16:52 PM1/20/21
to idem...@googlegroups.com
It’s not relate database user.

You already do correct, just improve when you get issue as I described.
Or you can try docker never get conflict file issue

Proxy in case you use domain and want to save a public up

Sent from my Phone

On 20 Jan 2021, at 21:51, Leszek Bober <lechu...@gmail.com> wrote:

Thx HiepLq,
Reply all
Reply to author
Forward
0 new messages