https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • b

    bastelfreak

    05/17/2022, 6:29 PM
    na, dont do that
  • b

    bastelfreak

    05/17/2022, 6:29 PM
    in /etc/default/puppetserver or something, set JAVA_BIN
  • b

    bastelfreak

    05/17/2022, 6:29 PM
    updating the default java might break other stuff
  • g

    Greg Bristol

    05/17/2022, 6:30 PM
    oh i meant for your other applications
  • c

    CVQuesty

    05/17/2022, 6:30 PM
    Yeah, it’s a vendored Java. No touchy
  • g

    Greg Bristol

    05/17/2022, 6:30 PM
    but yes for puppetserver for sure do that
  • g

    Greg Bristol

    05/17/2022, 6:30 PM
    but i would probably just leave it as using 8
    👍 1
  • k

    khudson

    05/17/2022, 6:31 PM
    it works way faster with java 11
  • b

    bastelfreak

    05/17/2022, 6:31 PM
    PE vendores Java, FOSS doesnt. and performance /memory allocation for 11 is way better compared to 8
  • c

    CVQuesty

    05/17/2022, 6:31 PM
    If it’s in /opt/puppetlabs, I don’t touch it unless led by Puppet support.
    ✔️ 1
  • k

    khudson

    05/17/2022, 6:31 PM
    that's fair
  • o

    Oleksandr Lytvyn

    05/17/2022, 6:32 PM
    Ok, thanks 🙂
  • v

    vchepkov

    05/17/2022, 6:37 PM
    @CVQuesty, you don't have to, since PE uses 11 🙂
  • c

    csharpsteen

    05/17/2022, 6:39 PM
    Yup, PE 2019 and 2021 use Java 11. Java 17 is on the horizon.
  • j

    Joshua Smeda

    05/17/2022, 6:44 PM
    message has been deleted
  • c

    csharpsteen

    05/17/2022, 6:44 PM
    Puppet Server relies heavily on the Java JIT compiler --- which is much improved in Java 11 relative to Java 8. Garbage collection algorithms have also been improved between Java 11 and Java 8. Java 11 switches the default collector to G1, but we’ve found through research and experimentation that the ParallelGC works better with JRuby, so
    -XX:+UseParallelGC
    in
    JAVA_ARGS
    is a good idea when using 11 or newer.
  • b

    bastelfreak

    05/17/2022, 6:45 PM
    do you already knownif we will see java 17 in PE 2021 as opt-in option?
  • c

    csharpsteen

    05/17/2022, 6:46 PM
    I haven’t heard of any plans to that effect. Switching the Java version up is a pretty big change, so it might be something that shows up in the Puppet 8 timeline.
  • b

    bastelfreak

    05/17/2022, 6:47 PM
    dang
  • j

    Joshua Smeda

    05/17/2022, 6:49 PM
    message has been deleted
  • k

    khudson

    05/17/2022, 6:52 PM
    UseParallelGC is also what i've found in my testing to be superior
  • j

    Joshua Smeda

    05/17/2022, 7:01 PM
    incase you notice - (I didn’t use certless for this call because i needed to modify auth.conf to run from these compilers directly)
  • j

    Joshua Smeda

    05/17/2022, 7:02 PM
    incase you notice - (I didn’t use certless for this call because i needed to modify auth.conf to run from these compilers directly - hence the /v3 endpoint calls)
  • j

    Joshua Smeda

    05/17/2022, 7:18 PM
    from what it seems like, it’s unable to get the certname from puppetdb (and maybe corresponding facts?), but there is access (tested with curl too) since it’s able to get facts / certname when it’s compiled against 1 node
  • j

    Joshua Smeda

    05/17/2022, 7:24 PM
    hehe, next thing would be strace
  • c

    csharpsteen

    05/17/2022, 7:25 PM
    Yeah. Aleksey Shipilëv posted some analysis here: https://github.com/jruby/jruby/issues/5789#issuecomment-511931326 Sounds like the gist is that the things G1 does to ensure pause times are low have a lot of overhead with the way JRuby works. So, you get better overall throughput at the cost of increased pause times with ParallelGC. Since
    puppet
    runs on a 30 minute schedule, it’s probably a good trade-off overall to use ParallelGC and pack more agent runs into that 30 minute window, even if some see a handful of seconds of latency.
  • c

    csharpsteen

    05/17/2022, 7:25 PM
    Yeah. Aleksey Shipilëv posted some analysis here: https://github.com/jruby/jruby/issues/5789#issuecomment-511931326 Sounds like the gist is that the things G1 does to ensure pause times are low have a lot of overhead with the way JRuby works. So, you get better overall throughput at the cost of increased pause times with ParallelGC. Since
    puppet
    runs on a 30 minute schedule, it’s probably a good trade-off overall to use ParallelGC and pack more agent runs into that 30 minute window, even if some see a handful of seconds of latency.
  • b

    bastelfreak

    05/17/2022, 7:26 PM
    https://github.com/camptocamp/puppet-catalog-diff/blob/master/lib/puppet/catalog-diff/compilecatalog.rb you can trow a bunch of Puppet.debug() statements into that file tomorrow
  • u

    Ugo Bellavance

    05/17/2022, 8:47 PM
    If I have this in a hiera yaml file:
    Copy code
    mysql::server::override_options:
      'mysqld':
        bind_address: '*'
        expire_logs_days: 1
        innodb_buffer_pool_size: 1G
        innodb_file_per_table: 'ON'
    How can I have something similar on a more "precise" hiera file, but that changes only one parameter?
  • l

    Lumiere

    05/17/2022, 8:49 PM
    you would need to set lookup_options on that key ( https://puppet.com/docs/puppet/7/hiera_merging.html#setting_lookup_options_to_refine_the_result_of_a_lookup )
1...444546...428Latest