Skip to main content

Managing computers with mcollective

MCollective or 'Marionette Collective' is a framework to distribute parallel commands to a cluster of computers. You can basicly compare it to remote execution except the framework is organized to work the commands in parallel. Via a simple plugin structure of ruby it is relatively easy to write your own commands.

Marionette Collective works on top of a message queue broker, you can pick different flavors for the broker but the most common adoption appears to be activemq. Other brokers such as rabbitmq are supported as well.

With MCollective there are basicly two configations 'server' and 'client', contrary to terminology, 'server.cfg' is used for the deamon service. In this configuration file you configure what queue on the broker the deamon connects to receive commands. In the 'server.cfg' you configure the queue on the broker to send the commands. So in short: server.cfg is for the command-line client,  client.cfg is for the deamon process.

With MCollective it's possible to create a self-updating command for example just create a command that downloads new ruby files from an ftp server. After installing new ruby files you should restart the service to make it go into effect. The problem with self-updating services however is that technically it's possible to cause an update which due to improper testing causes the deamon not to continue loading. This problem is leviated a little bit due to the lazy-loading nature of interprented languages like ruby; the problem still exists however.

To leviate this form of issue the general idea in devops practices is to increase the coverage with a secondair update stratergy. For example via puppet or via saltstack. This is likely one of the reasons puppet deciced to bundle their software with MCollective.

Comments

Popular posts from this blog

The 8 Best U.S. Cities to Visit for a Quick Vacation

The best thing about visiting a new city is experiencing the thrill of adventure. From delicious food to rich history, there’s always something new to do. Whether you live close to these cities or you’re planning on making a trip to the USA, here's 8 of the best U.S. cities to visit on your next vacation (in no particular order): 1. Portland, Oregon As Oregon’s largest city, Portland has steadily been on the rise as a hotspot for food and beer connoisseurs. It’s nestled between the Columbia and Willamette Rivers with a stunning view of snowy Mount Hood which only adds to the thriving artistic culture. Portland is also home to beautiful parks, bridges and bike paths, making this city a top choice for outdoor adventurists. If you’re looking for more breathtaking escapades, Portland is nearby to a few national forests including Mount Hood National Forest and Gifford Pinchot National Forest. 2. Nashville, Tennessee Nashville rightfully owns

Material & shader management

In the upcoming changes in my editor I implemented the material system inspired on  Frostbite engine of DICE, binaries are download-able on the project page. Also I've implemented an conversion tool and file-format for future mesh formats using Assimp.

Securing your hardware wallet

Recently I found myself to test out an Trezor. For people not aware this is a hardware wallet for cryptocurrencies (such as Bitcoin). It was very happy with my new toy, however during the installation I noticed an rather opaque security flaw in the design.