• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    More instance of mango on the same computer

    Mango Automation general Discussion
    2
    9
    1.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      etantonio
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • E
          etantonio
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • E
            etantonio
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • phildunlapP
              phildunlap
              last edited by

              While I still can't recommend this practice from what I know, yes that is likely all that is required.

              1 Reply Last reply Reply Quote 0
              • E
                etantonio
                last edited by

                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 bad

                0_1526485825451_SnapCrab_NoName_2018-5-16_17-50-1_No-00.png

                It is possible to assign different RAM portion to the 2 JVM?

                1 Reply Last reply Reply Quote 0
                • phildunlapP
                  phildunlap
                  last edited by phildunlap

                  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).

                  1 Reply Last reply Reply Quote 0
                  • E
                    etantonio
                    last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • phildunlapP
                      phildunlap
                      last edited by phildunlap

                      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.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post