Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Matomo
  3. Issue with Remote DB Connection in Matomo on Cloudron

Issue with Remote DB Connection in Matomo on Cloudron

Scheduled Pinned Locked Moved Matomo
4 Posts 3 Posters 248 Views 3 Watching
  • 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.
  • P Offline
    P Offline
    preet-cappital
    wrote on last edited by
    #1

    Hi, we’re trying to connect Matomo to a remote database by modifying the config.ini.php file, but after restarting the server, Cloudron’s script overwrites our changes. Has anyone found a way to prevent this from happening?

    Thanks!

    J 1 Reply Last reply
    1
    • P preet-cappital

      Hi, we’re trying to connect Matomo to a remote database by modifying the config.ini.php file, but after restarting the server, Cloudron’s script overwrites our changes. Has anyone found a way to prevent this from happening?

      Thanks!

      J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @preet-cappital on Cloudron, deployed apps always use the internal database. You cannot configure apps to use an external database.

      Is there a reason to use an external database? You can always give your internal database more resource in Services view.

      Cloudron features like backup, restore, clone, import etc all rely on the internal database being used (this is how things are automated).

      1 Reply Last reply
      0
      • P Offline
        P Offline
        preet-cappital
        wrote on last edited by
        #3

        We are running multiple apps in a single Cloudron instance. In Matomo, we are tracking our project, which has millions of daily active users and numerous custom dimensions. We need to generate detailed reports to analyze trends, which results in a significant amount of data.

        Our main concern is monitoring and scaling the server's storage when needed. With the internal database, we would have to manually clean up storage or scale the instance, whereas a remote database with auto-scaling would handle this seamlessly. This is why we were exploring connecting Matomo to an external database.
        Also during the scaling process, our other apps will be affected.

        Is there a workaround to prevent Cloudron from overwriting the config changes, or is there an alternative approach to achieve this?

        Thanks!

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          Cloudron package always ensure the platform related configs on app restart. This is required to know a consistent state for updates. In your case if you need to tweak those, then you may have to fork the package repo and customize the app for such needs. Overall Cloudron is not built for horizontal scaling and maybe for millions of daily users, it is likely not the best option. We try to strike some balance here, but solving too much in one would make life hard for other use-cases.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search