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

    Slackbot

    08/06/2023, 4:16 AM
    This message was deleted.
    y
    s
    +2
    • 5
    • 31
  • c

    Christian Michael Tan

    08/06/2023, 3:13 PM
    My regex
    (?:X11Forwarding)[^\s]+
    is to match strings with X11Forwarding and stops on a white space, proven working in regex tests, but if I put it in a puppet code :
    file_line { 'testing' :
    ensure => present,
    path  => '/home/ccpro/test2',
    line  => 'X11Forwarding ayaw',
    match => '(?:X11Forwarding)[^\s]+',
    multiple => true,
    replace_all_matches_not_matching_line => true,
    }
    the regex is matching the string, including the white spaces and strings after the white spaces : Example : X11Forwarding Part2 Test What could be the problem?
  • s

    Stephen

    08/06/2023, 7:51 PM
    file_line
    matches a whole line, as the name implies
  • p

    Phillip Schichtel

    08/06/2023, 8:13 PM
    Hi everyone. Is there some place where I can track the progress of the Debian Bookworm packaging?
  • s

    Stephen

    08/06/2023, 8:32 PM
    They are allegedly aiming for end of quarter
  • p

    Phillip Schichtel

    08/06/2023, 10:18 PM
    @Stephen good to know. I found this JIRA issue that seemed relevant, but the link it broken apparently due to some migration: https://tickets.puppetlabs.com/browse/PA-4995
  • s

    Stephen

    08/06/2023, 11:45 PM
    https://puppetcommunity.slack.com/archives/C0W298S9G/p1686749961615669
  • s

    Stephen

    08/06/2023, 11:45 PM
    this sort of explains the background
  • p

    Phillip Schichtel

    08/07/2023, 1:06 AM
    ah, thanks for that link!
  • m

    matt

    08/07/2023, 12:37 PM
    I’m reading the performance tuning documentation for puppet 7 master server (https://www.puppet.com/docs/puppet/7/server/tuning_guide.html) I’m trying to understand the levers available to optimise throughput on a small personal setup, I get the point of the max-active-instances having a 1:1 ratio with a puppet run from a client, what I’m looking to do is understand how to get the maximum throughput on those puppet runs as I’m limited by 4 cores available, with around 20 consecutive clients checking in frequently
  • m

    matt

    08/07/2023, 12:38 PM
    reading the documentation on the JVM heap size, beyond the obvious that more = good because more can be done in active memory which is faster, I’m sure how far to push that, because there will surly be a limit of how much memory can actually be used effectively
  • m

    matt

    08/07/2023, 12:39 PM
    also how to be effective with settings such as max-request-per-instance and max-queued-requests to recycle the processes but allow the right size of que to form
  • b

    bastelfreak

    08/07/2023, 12:44 PM
    tl;dr tuning: • set max-request-per-instance to infinity (should be the default I think). That's only required if you've memory leaks in your functions • start with 1G HEAP per jruby instance • install the puppet_operational_dashboard to gather metrics • ensure you use the latest jruby that your puppetserver version supports • one jruby instance per logical cpu core is fine if the server doesn't to much else. if you have a lot of function that wait for IO/network you can go up to two jruby instances per core
  • b

    bastelfreak

    08/07/2023, 12:45 PM
    when you run into performance problems: • check which garbage collection you're using • ensure reserved code cache is set to 2G • ensure min+max heap size are equal • avoid more 32-64GB HEAP sizes
  • m

    matt

    08/07/2023, 12:47 PM
    interesting, thank you
  • m

    matt

    08/07/2023, 12:47 PM
    (and id max-request is infinity by default)
  • b

    bastelfreak

    08/07/2023, 12:47 PM
    let me know if you've performance problems
  • m

    matt

    08/07/2023, 12:48 PM
    I’m certainly hitting a visual performance problem, but I need to gather some data to see if it’s real and where the bottleneck is (visually some clients are failing to check in every time)
  • b

    bastelfreak

    08/07/2023, 12:48 PM
    what's their error message
  • m

    matt

    08/07/2023, 12:49 PM
    machine is queing puppet requests ( I think, hence gathering data) which is holding cpu
  • m

    matt

    08/07/2023, 12:49 PM
    error is resource unavailable
  • m

    matt

    08/07/2023, 12:49 PM
    let me gather some proper data
  • m

    matt

    08/07/2023, 12:49 PM
    (help and offer of help is appreciated)
  • m

    matt

    08/07/2023, 12:53 PM
    for my interest, why would I set reserved code cache is set to 2G ?
  • b

    bastelfreak

    08/07/2023, 12:53 PM
    -XX:ReservedCodeCacheSize=2G
    in the JVM startup params
  • m

    matt

    08/07/2023, 12:53 PM
    yeah, I got it, but why 2G ?
  • b

    bastelfreak

    08/07/2023, 12:54 PM
    more caching is better but JVM only supports 2G
  • b

    bastelfreak

    08/07/2023, 12:54 PM
    that's the maximum
  • m

    matt

    08/07/2023, 12:54 PM
    wow, didn’t know that
  • m

    matt

    08/07/2023, 12:54 PM
    nice
1...404405406...428Latest