The Choria Server is a replacement for the old mcollectived daemon. This new daemon is written in Golang and it’s very fast, light weight and embeddable while providing a MCollective compatability layer for hosting old agents.
Today this server is in Beta / Preview, we’ve done extensive testing on the agents Choria provide but please use with caution. We make this early version available to solicit feedback from the community
This guide will help you replace the mcollectived with a new choria server.
The aim is to do the bulk of things that the old mcollectived did, it might do some things a bit different and downgrade some capabilities but it is hoped to be a smooth path forward. Current list of short comings / issues are below, please get in touch should you find any more:
Thanks to not keeping the whole Puppet in memory it is a lot lighter on your environment:
root 28261 0.0 0.1 427508 11512 ? Ssl 08:52 0:03 /usr/sbin/choria server root 1553 0.1 1.7 1308192 71964 ? Sl 06:50 0:07 /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/mcollectived
YAML on the network has a number of problems and in particular how old MCollective used YAML:
As shown above in the status list there’s a huge change happening here - the whole network protocol is now JSON pure. This is a big big change in behaviour, I’ve tried to mitigate a lot of this and people who wrote agents as per the official guides will hopefully not notice problems. Further mitigation is needed and I will do those soon once I can be a bit more aggressive in the kinds of changes I can make to the MCollective code. This is a first step towards that.
If however you have your own custom agents and clients/applications I urge you to carefully test them in development under this new mode of operation.
To configure the new daemon you do everything the basic getting started guide shows you. You have to run at least these module versions to ensure the JSON DDL files exist (though not all the actual modules are needed of course):
mod "choria-choria", "0.9.0" mod "choria-mcollective_choria", "0.9.0" mod "choria-mcollective_agent_bolt_tasks", "0.9.0" mod "choria-mcollective", "0.6.0" mod "choria-mcollective_util_actionpolicy", "3.0.0" mod "choria-mcollective_data_sysctl", "3.0.0" mod "choria-mcollective_agent_shell", "1.0.3" mod "choria-mcollective_agent_service", "4.0.1" mod "choria-mcollective_agent_puppet", "2.1.0" mod "choria-mcollective_agent_puppetca", "4.0.1" mod "choria-mcollective_agent_process", "4.0.2" mod "choria-mcollective_agent_package", "5.0.1" mod "choria-mcollective_agent_nettest", "4.0.2" mod "choria-mcollective_agent_nrpe", "4.0.1" mod "choria-mcollective_agent_filemgr", "2.0.1" mod "choria-mcollective_agent_iptables", "4.0.1"
And you need to change some data:
On all your nodes where you wish to run the new service:
choria::server: true choria::manage_package_repo: true mcollective::service_ensure: stopped mcollective::service_enable: false
On all nodes including those that are pure MCollective and your clients:
mcollective_choria::config: security.serializer: "json"
At this point you will run the new Choria daemon, you can confirm this with mco rpc choria_util info and you’ll see the versions, of course ps will also show you.
The MCollective subsystem will still log to your normal mcollective.log and auditing will also go to the log configured and previously used for mcollective, formats of those would not have changed yet.