devops

A collection of 4 posts

Ansible Cheatsheet

misc notes, tips and tricks as well as reminders for ansible. Run a command ansible kafka -i hosts -m service -a "name=kafka state=started enabled=yes" kafka: group name to

Lock writes to a mongodb server

Using the mongo shell check status db.current_op() Lock db.fsyncLock() UnLock db.fsyncUnlock() Using pymongo Note: lock/unlock must be done using the same connection/session mongo_client = mongo_connect(mongo_