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 - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Mastodon - pghero recommendation

Mastodon - pghero recommendation

Scheduled Pinned Locked Moved Solved Mastodon
4 Posts 2 Posters 1.8k Views 2 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.
  • shanelord01S Offline
    shanelord01S Offline
    shanelord01
    wrote on last edited by
    #1

    Hi,

    When I check pghero, it suggests the following:

    "Query stats must be enabled for slow queries"

    Query Stats
    Make them available by adding the following lines to postgresql.conf:

    shared_preload_libraries = 'pg_stat_statements'
    pg_stat_statements.track = all
    Restart the server for the changes to take effect.


    I can't see any way to add this or change these settings...

    Any thoughts?

    Thanks,
    Shane.

    girishG 1 Reply Last reply
    0
    • shanelord01S shanelord01

      Hi,

      When I check pghero, it suggests the following:

      "Query stats must be enabled for slow queries"

      Query Stats
      Make them available by adding the following lines to postgresql.conf:

      shared_preload_libraries = 'pg_stat_statements'
      pg_stat_statements.track = all
      Restart the server for the changes to take effect.


      I can't see any way to add this or change these settings...

      Any thoughts?

      Thanks,
      Shane.

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @shanelord01 I guess this is meant for development setups. It has to be enabled in the postgesql addon (which is in a container named postgresql). Currently, there is no easy way to persist changes to the postgresql addon.

      If you like, you can docker exec -ti postgresql /bin/bash and then edit /run/postgresql/postgresql.conf and then supervisorctl restart postgresql. As mentioned, any changes will be overwritten on container restart or server restart.

      shanelord01S 1 Reply Last reply
      0
      • girishG girish

        @shanelord01 I guess this is meant for development setups. It has to be enabled in the postgesql addon (which is in a container named postgresql). Currently, there is no easy way to persist changes to the postgresql addon.

        If you like, you can docker exec -ti postgresql /bin/bash and then edit /run/postgresql/postgresql.conf and then supervisorctl restart postgresql. As mentioned, any changes will be overwritten on container restart or server restart.

        shanelord01S Offline
        shanelord01S Offline
        shanelord01
        wrote on last edited by
        #3

        @girish Thanks for this. Should I just ignore the recommendation or will it do something beneficial to my instance?

        girishG 1 Reply Last reply
        0
        • shanelord01S shanelord01

          @girish Thanks for this. Should I just ignore the recommendation or will it do something beneficial to my instance?

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @shanelord01 You can ignore the recommendation. I think it's a hint for developers to optimize (and maybe sysadmins to report back to upstream project of bug/issues).

          1 Reply Last reply
          2
          • nebulonN nebulon marked this topic as a question on
          • nebulonN nebulon has marked this topic as solved on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          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