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. Mastodon
  3. Mastodon - pghero recommendation

Mastodon - pghero recommendation

Scheduled Pinned Locked Moved Solved Mastodon
4 Posts 2 Posters 970 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 Do not disturb
      girishG Do not disturb
      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 Do not disturb
          girishG Do not disturb
          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
          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