https://www.puppet.com/community logo
Join Slack
Powered by
# puppet-enterprise
  • d

    damsdri

    05/06/2022, 8:52 AM
    yeah, followed that exact guide, but not sure how to check 😉
  • b

    bastelfreak

    05/06/2022, 8:52 AM
    I never set that, always xms/xmx directly
  • b

    bastelfreak

    05/06/2022, 8:53 AM
    how does your jvm params look? in /etc/sysconfig/pe-puppetserver.conf if you're on rhel-like systems
  • b

    bastelfreak

    05/06/2022, 8:53 AM
    take the max memory value, divide by jruby instances, should be 2048mb
  • d

    damsdri

    05/06/2022, 9:20 AM
    hmmm, that file doesn’t seem to exist on the compiler 🤔
  • b

    bastelfreak

    05/06/2022, 9:24 AM
    on which OS are you
  • d

    damsdri

    05/06/2022, 9:25 AM
    OracleLinux, so rhel-based
  • d

    damsdri

    05/06/2022, 9:25 AM
    OracleLinux, so rhel-based
  • b

    bastelfreak

    05/06/2022, 9:27 AM
    it's /etc/sysconfig/pe-puppetserver
  • b

    bastelfreak

    05/06/2022, 9:27 AM
    without the .conf
  • b

    bastelfreak

    05/06/2022, 9:28 AM
    check for the JAVA_ARGS
  • d

    damsdri

    05/06/2022, 9:29 AM
    Copy code
    # Modify this if you'd like to change the memory allocation, enable JMX, etc
    JAVA_ARGS="-Xmx6144m -Xms6144m -Xss2m -Djava.io.tmpdir=/opt/puppetlabs/server/apps/puppetserver/tmp -XX:ReservedCodeCacheSize=384m -XX:+UseParallelGC -Xlog:gc*:file=/var/log/puppetlabs/puppetserver/puppetserver_gc.log::filecount=16,filesize=65536 -Djdk.tls.ephemeralDHKeySize=2048"
    
    # Modify this as you would JAVA_ARGS but for non-service related subcommands
    JAVA_ARGS_CLI="${JAVA_ARGS_CLI:-}"
  • b

    bastelfreak

    05/06/2022, 9:32 AM
    that looks wrong
  • d

    damsdri

    05/06/2022, 9:35 AM
    in what sense?
  • b

    bastelfreak

    05/06/2022, 9:35 AM
    ah I mixed up the -xss with -xms and thought -xms is listed twice
  • s

    Slackbot

    05/06/2022, 9:35 AM
    This message was deleted.
    m
    b
    • 3
    • 3
  • s

    Slackbot

    05/06/2022, 9:36 AM
    This message was deleted.
    v
    r
    t
    • 4
    • 5
  • b

    bastelfreak

    05/06/2022, 9:37 AM
    i usually have something like this:
    Copy code
    puppet_enterprise::profile::master::java_args: {"Xms":"16g","Xmx":"16g"}
    puppet_enterprise::master::puppetserver::jruby_max_active_instances: 8
    puppet_enterprise::master::puppetserver::reserved_code_cache: 2048m
  • d

    damsdri

    05/06/2022, 9:37 AM
    both on primary as compilers?
  • b

    bastelfreak

    05/06/2022, 9:38 AM
    my rule oh thumb: is it a big env? 2gig memory per jruby instance. one jruby instance per cpu core. on small envs 1gig mem per jruby. always 2gig reserved code cache. valid for FOSS/PE primary/PE compiler. if puppetdb has a huge workload, do not reserve all cpu cores for puppetserver. run puppetdb/puppetserver with java 11. use latest postgresql you can get, ensure jruby9k is used.
    👍 1
  • b

    bastelfreak

    05/06/2022, 9:39 AM
    my rule oh thumb: is it a big env? 2gig memory per jruby instance. one jruby instance per cpu core. on small envs 1gig mem per jruby. always 2gig reserved code cache. valid for FOSS/PE primary/PE compiler. if puppetdb has a huge workload, do not reserve all cpu cores for puppetserver. run puppetdb/puppetserver with java 11. use latest postgresql you can get, ensure jruby9k is used.
  • m

    Marty Ewings

    05/06/2022, 10:37 AM
    2mb is the default
  • v

    vchepkov

    05/09/2022, 12:09 PM
    that puts proper settings into pe.conf
  • s

    simonhoenscheid

    05/09/2022, 2:49 PM
    Hello Community, I have a question: I am planning to move a PE installation to another Server. I used the node_manager module to dump the current configuration. I replaced the relationship between roles and users with the name to get rid of the IDs. What options do I have to deal with the rbac_role permissions, especially with the instance IDs? Do I replace all IDs with * to be able to apply the permissions to the new server?
  • v

    vchepkov

    05/09/2022, 2:52 PM
    well, you can use pltraining-rbac in similar matter, but you can backup/restore all of them with standard PE backup tools
  • v

    vchepkov

    05/09/2022, 2:53 PM
    https://puppet.com/docs/pe/2019.8/backing_up_and_restoring_pe.html
    👍 1
  • s

    simonhoenscheid

    05/09/2022, 2:54 PM
    @vchepkov I will have a look at this
    👍 1
  • s

    Slackbot

    05/09/2022, 10:53 PM
    This message was deleted.
    n
    n
    • 3
    • 5
  • b

    bastelfreak

    05/11/2022, 6:48 AM
    Hi people, reading https://puppet.com/docs/pe/2021.5/code_mgr_customizing.html#config_post_env_hooks it mentions the following example for a code manager hook:
    Copy code
    puppet_enterprise::master::code_manager::post_environment_hooks: 
      - url: '<https://console.yourorg.com:4433/classifier-api/v1/update-classes>'    
        use-client-ssl: true
    is there any reason why this isn't enabled by default?
  • s

    Slackbot

    05/11/2022, 8:04 AM
    This message was deleted.
    s
    • 2
    • 1
1...567...73Latest