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
  • Brite
  • 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. Feature Requests
  3. Elasticsearch

Elasticsearch

Scheduled Pinned Locked Moved Feature Requests
elasticsearch
54 Posts 15 Posters 7.9k Views 16 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.
  • KubernetesK Offline
    KubernetesK Offline
    Kubernetes
    App Dev
    wrote on last edited by Kubernetes
    #30

    Maybe to add that a cronjob in NextCloud App is recommended to update the index, e.g.

    */15 * * * * occ fulltextsearch:index --quiet
    
    andreasduerenA 1 Reply Last reply
    0
    • KubernetesK Kubernetes

      Maybe to add that a cronjob in NextCloud App is recommended to update the index, e.g.

      */15 * * * * occ fulltextsearch:index --quiet
      
      andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote on last edited by
      #31

      @Kubernetes Recommended is occ fulltextsearch:live as per the docs

      andreasduerenA 1 Reply Last reply
      2
      • andreasduerenA andreasdueren

        @Kubernetes Recommended is occ fulltextsearch:live as per the docs

        andreasduerenA Offline
        andreasduerenA Offline
        andreasdueren
        wrote on last edited by
        #32

        @andreasdueren said in Elasticsearch:

        @Kubernetes Recommended is occ fulltextsearch:live as per the docs

        There was a cron command that ran once upon starting. @girish what was that again?

        1 Reply Last reply
        1
        • J Offline
          J Offline
          joseph
          Staff
          wrote on last edited by
          #33

          I think like @service occ fulltextsearch:index --quiet

          andreasduerenA 1 Reply Last reply
          1
          • J joseph

            I think like @service occ fulltextsearch:index --quiet

            andreasduerenA Offline
            andreasduerenA Offline
            andreasdueren
            wrote on last edited by
            #34

            @Joseph I thought @service was different and there was another one. But maybe I'm wrong.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #35

              @andreasdueren maybe @reboot ? https://docs.cloudron.io/apps/#cron I would have preferred if it was called oneoff or startup 🤔 .

              andreasduerenA 1 Reply Last reply
              1
              • J joseph

                @andreasdueren maybe @reboot ? https://docs.cloudron.io/apps/#cron I would have preferred if it was called oneoff or startup 🤔 .

                andreasduerenA Offline
                andreasduerenA Offline
                andreasdueren
                wrote on last edited by
                #36

                @Joseph Yup I think that was it!

                1 Reply Last reply
                1
                • andreasduerenA andreasdueren referenced this topic on
                • KubernetesK Offline
                  KubernetesK Offline
                  Kubernetes
                  App Dev
                  wrote on last edited by
                  #37

                  @girish what do you need to make this gem a official package?

                  andreasduerenA 1 Reply Last reply
                  2
                  • KubernetesK Kubernetes

                    @girish what do you need to make this gem a official package?

                    andreasduerenA Offline
                    andreasduerenA Offline
                    andreasdueren
                    wrote on last edited by
                    #38

                    @Kubernetes I don't think it's wanted because they'd prefer to make it an add-on not as an app.

                    1 Reply Last reply
                    1
                    • KubernetesK Offline
                      KubernetesK Offline
                      Kubernetes
                      App Dev
                      wrote on last edited by
                      #39

                      When i look at the time this thread is open I wonder if it could be an interims solution until the add-on is ready

                      1 Reply Last reply
                      3
                      • J Offline
                        J Offline
                        joseph
                        Staff
                        wrote on last edited by
                        #40

                        Why not build it locally and deploy it?

                        (I wonder if the reluctance of deploying non-appstore comes from the difficulty of building an app or because it's seen as dangerous/unstable?)

                        KubernetesK 1 Reply Last reply
                        0
                        • J joseph

                          Why not build it locally and deploy it?

                          (I wonder if the reluctance of deploying non-appstore comes from the difficulty of building an app or because it's seen as dangerous/unstable?)

                          KubernetesK Offline
                          KubernetesK Offline
                          Kubernetes
                          App Dev
                          wrote on last edited by Kubernetes
                          #41

                          @joseph 1) This approach is seperate to the common Cloudron usage
                          2) Updates are not automatically, but manually
                          3) Not everybody is able to build and install custom packages
                          4) It requires public space on docker.hub or a private instance of docker repo
                          5) the package is not optimized by the Cloudron maintainers 🙂

                          1 Reply Last reply
                          5
                          • girishG girish

                            @Nicolas Indeed, current plan is to implement Elastic search as an addon and not as an app. This will help apps like Nextcloud etc have document search as well. I will move this port to Feature Requests since it's a platform level change.

                            If you want to use this right away, there are two approaches:

                            • use an external elastic search (i.e install it on a separate server and have the LAMP app access that)
                            • alternately, create a cloudron package and install elastic search as an app. You can install this package on elastic.domain.com and then your app can use it directly.
                            L Offline
                            L Offline
                            LoudLemur
                            wrote on last edited by
                            #42

                            @girish Perhaps the Nextcloud Talk High Performance Backend as well as the Elasticsearch could be installed together onto the same server, somehow.

                            There is also Manticore:
                            https://forum.cloudron.io/topic/9753/manticore-search-oss-fast-database-for-search-alternative-for-elasticsearch

                            1 Reply Last reply
                            2
                            • andreasduerenA Offline
                              andreasduerenA Offline
                              andreasdueren
                              wrote on last edited by
                              #43

                              Updated Elastic to v9.1.5
                              https://git.due.ren/andreas/elasticsearch-cloudron/releases/tag/v9.1.5

                              1 Reply Last reply
                              6
                              • nichu42N Offline
                                nichu42N Offline
                                nichu42
                                wrote on last edited by
                                #44

                                Great stuff! Store version when?

                                Matrix: @nichu42:blueplanet.social

                                1 Reply Last reply
                                3
                                • andreasduerenA Offline
                                  andreasduerenA Offline
                                  andreasdueren
                                  wrote last edited by
                                  #45

                                  Updated: https://git.due.ren/andreas/elasticsearch-cloudron/releases/tag/v1.0.17

                                  • Plugins: bundle analysis-icu in the image so language-specific analyzers (incl. German) work out of the box and no longer hit runtime install failures on Cloudron’s read-only FS.
                                  • Stability: revamped heap management to respect ES_JAVA_HEAP, custom jvm.options.d, and cgroup limits
                                  1 Reply Last reply
                                  2
                                  • nichu42N Offline
                                    nichu42N Offline
                                    nichu42
                                    wrote last edited by
                                    #46

                                    Is there a ELI5 installation guide for this?

                                    Matrix: @nichu42:blueplanet.social

                                    andreasduerenA 1 Reply Last reply
                                    0
                                    • nichu42N nichu42

                                      Is there a ELI5 installation guide for this?

                                      andreasduerenA Offline
                                      andreasduerenA Offline
                                      andreasdueren
                                      wrote last edited by
                                      #47

                                      @nichu42 This is honestly not super stable yet, I'm only using it for some nextcloud purposes and haven't tested it thoroughly.

                                      1 Reply Last reply
                                      2
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote last edited by
                                        #48

                                        @andreasdueren do you know if it's multi-tenant ? I think it makes sense to make elasticsearch as an addon (instead of an app). That way apps can come pre-installed/pre-configured with it. Apps and addons are very similar packaging wise. There is just some automation on top of it for backups and upgrades.

                                        What's needed for addons is: an automated way to create (say) a username/password on the fly for a specific app. (The platform then injects these as env var in the container). If ES supports multiple stores (db/index or whatever it's called in ES world), then this username/password pair has to limit access to specific store i.e one app cannot access another app's store.

                                        jdaviescoatesJ 1 Reply Last reply
                                        3
                                        • girishG girish

                                          @andreasdueren do you know if it's multi-tenant ? I think it makes sense to make elasticsearch as an addon (instead of an app). That way apps can come pre-installed/pre-configured with it. Apps and addons are very similar packaging wise. There is just some automation on top of it for backups and upgrades.

                                          What's needed for addons is: an automated way to create (say) a username/password on the fly for a specific app. (The platform then injects these as env var in the container). If ES supports multiple stores (db/index or whatever it's called in ES world), then this username/password pair has to limit access to specific store i.e one app cannot access another app's store.

                                          jdaviescoatesJ Offline
                                          jdaviescoatesJ Offline
                                          jdaviescoates
                                          wrote last edited by
                                          #49

                                          @girish I'd love to be able to use Eleasticsearch on Cloudron so we can have full text search on Nextcloud (because I keep thinking of moving my Nextcloud away Cloudron and search is one of the reasons why - high performance backends and other shiny features that come as standard in the AIO package being other reasons)...

                                          ...so I was intrigued by you question and didn't know the response. ChatGPT say:

                                          Right — so what Girish is asking about hinges on whether Elasticsearch supports secure multi-tenancy, meaning:
                                          can multiple apps share a single ES instance safely, with each app isolated to its own dataset (index or namespace) and credentials?

                                          Here’s how that works in Elasticsearch:


                                          🔍 Multi-tenancy in Elasticsearch

                                          Elasticsearch does not natively provide hard multi-tenant isolation in the open-source (Basic) tier. All indices in a cluster are accessible to any client that can authenticate, unless you’re running a commercial licence (Elastic’s “Gold” or higher) with role-based access control (RBAC) via Elastic Stack Security (formerly X-Pack).

                                          However, you can approximate multi-tenancy in several ways:


                                          1. Single cluster, per-app indices (no true isolation)

                                          • Each app gets its own index (e.g. app1_*, app2_*).
                                          • Credentials: You can create separate API keys or users per app if you’re using Elastic Stack Security.
                                          • Without X-Pack security, you can’t restrict one user to only their own indices.
                                          • âś… Simple to manage
                                          • ❌ No isolation without paid security features

                                          2. Single cluster, per-app namespaces with RBAC (requires paid Elastic licence)

                                          • You create roles limiting each user to their own index patterns (e.g. role_app1 → indices: app1_*).
                                          • Then create a user per app and assign its role.
                                          • âś… True logical isolation
                                          • ⚠️ Requires enabling security features (which are part of Elastic’s commercial licence, not open source)

                                          3. Separate Elasticsearch instances per app

                                          • Each app gets its own single-tenant ES container.
                                          • Cloudron would manage these automatically as separate addons (like how Postgres addons work).
                                          • âś… Strong isolation, no need for commercial features
                                          • ❌ More resource usage, less efficient

                                          4. OpenSearch alternative

                                          If you switch to OpenSearch (the fully open-source fork of Elasticsearch 7.10), it includes fine-grained access control (FGAC) and multi-tenancy features under the Apache 2.0 licence.
                                          That makes it more suitable for Cloudron’s addon model, since you can:

                                          • Create tenants
                                          • Restrict users to specific indices
                                          • Use internal user databases or LDAP for auth
                                          • Do all this without paid licensing

                                          đź’ˇ Summary (for Girish / Cloudron dev context)

                                          Option Isolation Licensing Suitable for Addon Model? Notes
                                          Elasticsearch OSS None Open source ❌ No way to restrict users per index
                                          Elasticsearch (with X-Pack Security) Yes Commercial ⚠️ Technically possible, but licence issue
                                          Multiple ES containers Full Open source âś… More resource-heavy
                                          OpenSearch Yes Open source âś…âś… Best fit for Cloudron addon use-case

                                          âś… Recommendation

                                          If the goal is to package Elasticsearch as a Cloudron addon shared by multiple apps with per-app credentials:

                                          • Use OpenSearch, not Elastic’s OSS build.

                                          • Implement addon hooks to:

                                            • Create an index pattern per app (app_<id>_*)
                                            • Create a user + password via the OpenSearch security API
                                            • Assign permissions for that index pattern
                                            • Inject credentials into the app container’s env vars

                                          That way, the model matches existing Cloudron addons like PostgreSQL: single shared service, isolated logical databases per app.


                                          Would you like me to sketch a quick pseudo-flow (in YAML or JSON) showing how Cloudron could auto-provision an OpenSearch user/index when an app requests the addon?

                                          I use Cloudron with Gandi & Hetzner

                                          andreasduerenA 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