How to get max-active-instances in container?

40 views
Skip to first unread message

Michael Gale

unread,
Oct 23, 2019, 7:54:31 PM10/23/19
to puppet...@googlegroups.com
Hello,

    I am using https://github.com/puppetlabs/pupperware to deploy puppet server 5.3.7 and am having a hard time adjusting the jruby max-active-instances.

I was following the docs from here: https://hub.docker.com/r/puppet/puppetserver/
and set my environment var PUPPETSERVER_MAX_ACTIVE_INSTANCES to 4 in my .env file and updated my docker-compose.yml:

--snip--
- PUPPETSERVER_JAVA_ARGS=${PUPPETSERVER_JAVA_ARGS:-}
-PUPPETSERVER_MAX_ACTIVE_INSTANCES=${PUPPETSERVER_MAX_ACTIVE_INSTANCES:-}
--snip--

I don't think it is working because in see the following in the logs:
--snip--
puppet_1    | 2019-10-23 22:50:03,199 INFO  [p.s.j.i.jruby-internal] Creating JRubyInstance with id 1.
puppet_1    | 2019-10-23 22:50:19,088 INFO  [p.s.j.i.jruby-agents] Finished creating JRubyInstance 1 of 1
--snip--

Am I setting it correctly?

Thanks
Michael

Morgan Rhodes

unread,
Oct 30, 2019, 6:03:16 PM10/30/19
to Puppet Users
Hi Michael,

Hm, that should be working. Can you double-check for any typos in the environment variables?

I'm running with the following and everything seems to be working as expected:
diff --git a/docker-compose.yml b/docker-compose.yml
index 646da33..7fc4140 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -18,6 +18,7 @@ services:
       - DNS_ALT_NAMES=puppet,puppet.${DOMAIN:-internal},${DNS_ALT_NAMES:-}
       - PUPPERWARE_ANALYTICS_ENABLED=${PUPPERWARE_ANALYTICS_ENABLED:-true}
       - PUPPETDB_SERVER_URLS=https://puppetdb.${DOMAIN:-internal}:8081
+      - PUPPETSERVER_MAX_ACTIVE_INSTANCES=${PUPPETSERVER_MAX_ACTIVE_INSTANCES:-}
     volumes:
       - puppetserver-code:/etc/puppetlabs/code/
       - puppetserver-config:/etc/puppetlabs/puppet/


$ cat .env
PUPPETSERVER_MAX_ACTIVE_INSTANCES=2

puppet_1    | 2019-10-30 21:53:21,131 INFO  [p.s.j.i.jruby-agents] Finished creating JRubyInstance 2 of 2

For my tests I was using puppetserver 5.3.7.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CA%2BYXe5mAqk%2B7rnkJ%3DnqA0O3GdmrjuWpv7ngadzAiPYHyQti86Q%40mail.gmail.com.


--
Morgan Rhodes
Release Engineering
she/her/hers
Reply all
Reply to author
Forward
0 new messages