Coreos & Docker, great presentation

Found this inspriing presentation from a Chicago Docker meetup:

http://www.mediafly.com/news/karl-grzeszczak-september-docker-presentation

from:

Chicago Docker – September 2014 at Mediafly

Thursday, Sep 25, 2014, 6:00 PM

Mediafly
444 N. Michigan Avenue Suite 650 Chicago, IL

68 Dockers Went

Join us for the September Chicago Docker Meetup. This month Karl Grzeszczak from Mediafly will give a short presentation on CoreOS and Dirk Eddelbuettel will talk about R and Docker. This event will be hosted at Mediafly in Chicago. Security will be checking IDs at the door. Your RSVP must reflect your FIRST NAME AND LAST NAME matching your ID.Sch…

Check out this Meetup →

by:
Karl Grzeszczak: on Twitter @karl_grz and his website http://karlgrz.com/.

 

It linked to this amazingly well done animation on RAFT consensus and how it works:

http://thesecretlivesofdata.com/raft/

Also linked a great blog post:

http://lukebond.ghost.io/deploying-docker-containers-on-a-coreos-cluster-with-fleet/

And here are some of the “main” coreos repos:

https://github.com/coreos/etcd

After digging up a bit on the presenter, he also had this interested post:

http://karlgrz.com/testing-salt-states-rapidly-with-docker/

#allYourDockerContainersAreBelongToUs

(still playing with this, occasionally, and I don’t have it figured out – let me know when a docker guru wants to step up and help me hack my way into an ideal, customizable, webserver/db/app management system)

MOSSCON 2013 was lots of fun

I had a great time attending and presenting at moscon.

http://mosscon.org/

May 18 – 19, 2013 | University of Louisville | Louisville, Kentucky

I know it was a lot of work for the people who set it up, but you did a great job and I look forward to attending again in another year.

(if I present again next time, my slides will be more readable, I promise…)

MySQL Master/Slave Replication Monitoring PHP Script

I’m a bit proud of myself on this one… I setup a simple, but clean and configurable, MySQL Master/Slave Replication Monitoring PHP Script:

http://code.google.com/p/php-mysql-master-slave-replication-monitor/ (docs)

It’s Open Source and free, I welcome comments, suggestions, and questions.

I think this will be quite useful for anyone who is setting up a pair of MySQL servers as master/slave and want to be sure their replication works as it should.

fanout, a super useful linux script if you manage multiple, similar servers

I love this fanout script for running the same command on multiple servers, just in case you’re interested:

http://www.stearns.org/fanout/fanout

[[email protected] scripts]# fanout "$SERVERS" "cp /root/.ssh/authorized_keys /home/user/.ssh/"
Starting [email protected]
Starting [email protected]
Starting [email protected]
Starting [email protected]
Starting [email protected]
Starting [email protected]
Fanout executing "cp /root/.ssh/authorized_keys /home/user/.ssh/"
Start time Wed Dec 23 23:45:35 EST 2009 , End time Wed Dec 23 23:45:47 EST 2009
==== As root on db1 ====

==== As root on db2 ====

==== As root on nas ====

==== As root on www1 ====

==== As root on www2 ====

==== As root on www3 ====

Exiting fanout, cleaning up...done.

[[email protected] scripts]# fanout "$SERVERSWWW" "/etc/init.d/httpd restart"
Starting [email protected]
Starting [email protected]
Starting [email protected]
Fanout executing "/etc/init.d/httpd restart"
Start time Wed Dec 23 23:50:52 EST 2009 , End time Wed Dec 23 23:50:59 EST 2009
==== As root on www1 ====
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

==== As root on www2 ====
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

==== As root on www3 ====
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

Exiting fanout, cleaning up...done.

[[email protected] scripts]# echo $SERVERS
[email protected] [email protected] [email protected] [email protected] [email protected] [email protected]
[[email protected] scripts]# echo $SERVERSWWW
[email protected] [email protected] [email protected]

A great way to execute the same commands on multiple servers… if you export the $SERVERS to a standard list, in your .bashrc or whatnot… it’s even easier. Of course, you’ll probably want to setup authorized_keys for your servers so that you don’t have to authenticate to each…