Project

General

Profile

Actions

Feature #8518

open

Foreman as a node_terminus

Added by Michael Messmore about 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

In doing performance testing on using foreman as an ENC we noticed that we were chewing up a lot of CPU on the puppetmasters. Looking at it, I hypothesized that a lot of that was being spent exec-ing new ENC processes, firing up Ruby, etc. So to test I was looking at the puppet indirector, the 'exec' node_terminus and the foreman ENC script and tried to do some work to crib together a foreman node_terminus. In our synthetic setup it saved about 15% CPU. Not spectacular, but I figured it helps.

I'm brand new to Ruby and probably did some dumb stuff, but I thought I'd suggest this upstream. It doesn't entirely replace node.rb functionality, and there are downsides I'm sure, like needing to restart the puppetmaster to pick up config changes. I'm not in a position to be able to contribute, but I would like to file this as a feature request and attach this as an example of what could be done.


Files

foreman.rb foreman.rb 5.91 KB foreman indirector interface Michael Messmore, 11/26/2014 11:18 AM
foreman.rb foreman.rb 1.27 KB foreman node indirection Michael Messmore, 11/26/2014 11:18 AM
Actions

Also available in: Atom PDF