python

A collection of 2 posts

ECS Cluster info

ECS Cluster info

A little script I wrote to print out some ECS info I usually have to use the web for, you can get it from git Sample output: ~/code/aws/ecs/ecs_cluster_info.

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_