More instance of mango on the same computer
-
Hy,
is it possible to launch multiple instances of mango on the same computer?
Naturally I will have a different port for any of these instances.
And naturally datasources are different because related to different plants.
Do you see any problem in this approach?
Thanks,
Antonio -
You can do this but they'll be competing with each other for resources (so you may want to set your explicit memory ceilings carefully). I would say if your clients are affiliated with one another there should be no issue compartmentalizing users in a single instance and if your clients are not affiliated they probably would prefer a private server. So, we don't advise it, generally.
-
We have only a VPS Server on Ubuntu running Mango, this is to monitor a plant for Customer A, but we want also to monitor a similar plant for customer B so my idea is that a single VPS Server can serve at least customer A and customer B , I can do this with different users on the same Mango or with different Mango instances.
-
I'm trying to start 2 mango on the same Ubuntu VPS,
to do this it seems to me that it is only necessary to change the port in /classes/env.properties or it is required something else?
Thanks,
Antonio -
While I still can't recommend this practice from what I know, yes that is likely all that is required.
-
Well,
it seems ok, why you think it is not a good idea to have 2 Mango on the same server?
This is the situation actually and do not seems so badIt is possible to assign different RAM portion to the 2 JVM?
-
Yeah that's definitely possible. You can definitely have a server large enough to handle two clients. You should go as far as to run them under different operating system users at minimum, though, and perhaps not as root, or the security considerations will have me back to saying
You can do this but they'll be competing with each other for resources (so you may want to set your explicit memory ceilings carefully). I would say if your clients are affiliated with one another there should be no issue compartmentalizing users in a single instance and if your clients are not affiliated they probably would prefer a private server. So, we don't advise it, generally.
Even though you can restrict the memory to likely not conflict, you can't restrict the CPU (without simply preferring one, or explicit subdivision of the cores, extra hassle for you).
-
So your doubt regards the responsiveness of the system,
I think JVM create complete different environment without intersection and also is Mango multicore oriented?
In any case using the same Mango is a problem for me because I've just one VPS and 2 different customers and I don't like their data share the same tables, this because the maintenance is easier for the individual customer and I do not want the other customer is infected.Thanks
Antonio -
Yes Mango is very much designed for multicore machines.
Yes my formal recommending is considering that a denial of service attack on one client will probably affect the other. And that a malicious user in one system could find their way to affecting the other system.
In plenty of cases with plenty of people, you may not find that situation. But, running two ideally-separate Mangoes as the root user is leaving the door open to trouble, especially if you're doing a second insecurity like logging in as the admin user on an unsecure connection.