• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. evranch
    3. Posts

    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
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by evranch

    • RE: NoSQL requires license?

      @MattFox Makes sense. This instance I run at home has been migrated since v3 and never had the NoSQL module installed until recently, when I realized "Hey, this thing is still running on H2"

      In any case Mango was incredibly easy to set up in Docker, and I have it working with PostgreSQL in another container. I pulled all the data off the slow PC onto my workstation, exported my configuration and my historical data into a massive CSV, and reimported it into another container. Tested it and then dropped it back onto the box. Docker is great at this sort of job and will make migrating instances between hardware effortless.

      Here is a docker-compose.yml for reference if anyone wants to set up a containerized system quickly using SQL. mangoNoSqlDatabase is mounted to an empty directory, as that's the simplest way to remove a module from a Docker image.

      version: "3"
      services:
        mango:
          image: ghcr.io/radixiot/mango:latest
          container_name: mango
          environment:
            - TZ=America/Regina
          volumes:
            - ./mango-data:/opt/mango-data
            - ./empty:/opt/mango/web/modules/mangoNoSqlDatabase
          ports:
            - 8080:8080
            - 8443:8443
          restart: unless-stopped
          depends_on: 
            - postgres
        postgres:
          image: postgres
          user: 1000:1001
          environment:
            POSTGRES_USER: mango
            POSTGRES_PASSWORD: password
          volumes:
            - ./pg-data:/var/lib/postgresql/data
          restart: unless-stopped
      
      

      then just connect to the database container with

      db.type=postgres
      db.url=jdbc:postgresql://postgres/mango
      db.username=mango
      db.password=password
      
      

      in your mango.properties

      Performance seems similar enough to NoSQL, at least for this ~100 point system. The Postgres container is barely consuming any resources, I'm surprised that H2 was so hungry for memory.

      posted in User help
      E
      evranch
    • RE: NoSQL requires license?

      Thanks, I saw this in the log but it would be nice if it was better documented that it would switch to this mode before I had migrated my database. It's not apparent if I can now migrate back from NoSQL to MySQL.

      Licensing appears to have changed quite a bit under Radix with licensing and pricing completely obscured, even for hardware, personally I liked the old model where you knew what you were buying.

      So I'll give MySQL a shot first for this application. For MySQL just set db.type=mysql in mango.properties and fill in the credentials?

      I was interested in trying out Mango under Docker anyways, so I will try to spin up a test container using MySQL before I trash my instance by accident.

      Do you happen to have a docker-compose.yml file ready for deployment with the appropriate bind mounts identified? All I could find was

      docker pull ghcr.io/radixiot/mango:latest
      
      posted in User help
      E
      evranch
    • NoSQL requires license?

      Hi, I've been using Mango for years as the SCADA system on my farm.

      Recently I decided to convert to NoSQL as H2 was becoming a massive drag on the older computer that it runs on, consuming most of the RAM, grinding on swap and eating 60-80% of the CPU time.

      NoSQL turns out to be extremely performant compared to H2, consuming under 10% of RAM and 5% of CPU time on the same machine. Unfortunately it results in restarting Mango every 8 hours without a license. This was not listed as a limitation of the free licence?

      Does the NoSQL module require its own license, or is it part of the Enterprise version?

      If this is the case, it appears that connecting to MySQL is also an option, yet I could not find any documentation regarding configuration or converting the database.

      Thanks, Alex

      posted in User help
      E
      evranch