NICE! On Wed, Jun 3, 2015 at 10:09 PM, Jens Deppe <[email protected]> wrote:
> Luke, didn't I send you my fabric scripts from a while back? > > Attached is an example which was used for GemFireXD (now not available any > more), but most of the structure remains the same. > > Another nice feature is that fabric lets you run jobs in parallel; I've > been able to start up 100+ node clusters this way in under a minute. > > --Jens > > On Wed, Jun 3, 2015 at 6:01 PM, Abtin Afshar <[email protected]> > wrote: > >> Hi Randy, >> >> You can actually do a lot with Fabric. I hacked a quick script to >> download gemfire logs, stats, thread dumps and zip them up from any cluster >> I want (dev,sit, uat). Beauty of it is that you only need to install it in >> you local machine (in my case my Linux VM) and it uses ssh under the hood. >> You can also add any python goodness to your script and control your >> cluster with a simple command. >> >> Cheers! >> Abtin >> >> >> > On Jun 3, 2015, at 3:41 PM, Randy May <[email protected]> wrote: >> > >> > Thats funny. I was just looking for something exactly like this to help >> me >> > out with build automation at a client. Thanks for sharing! >> > >> > On Wed, Jun 3, 2015 at 2:50 PM Luke Shannon <[email protected]> >> wrote: >> > >> >> I was just working with a client who is using this framework to manage >> all >> >> their distributed geode processes (mainly capturing log and stats >> files for >> >> trouble shooting but also parallel starts to recover from persistence). >> >> >> >> http://www.fabfile.org/ >> >> >> >> I have come across tons of custom shell script solutions to do this >> sort of >> >> thing, and have played with Ansible myself (which is great). This one >> look >> >> interesting. You can write Python, but you can also do a DSL that looks >> >> like this: >> >> >> >> from fabric.api import * >> >> >> >> >> >> >> >> env.hosts = ['cache_server1', 'cache_server2'] >> >> >> >> env.user = 'my_user' >> >> >> >> env.password = 'my_pass' >> >> >> >> >> >> >> >> def download_log(): >> >> >> >> with settings(warn_only=True): >> >> >> >> cd('/gemfire/cache/): >> >> >> >> get('mycache.log') >> >> >> >> >> >> >> >> >> >> -- >> >> Luke Shannon | Sr. Field Engineer - Toronto | Pivotal >> >> >> ------------------------------------------------------------------------- >> >> Join the Toronto Pivotal Usergroup: >> >> http://www.meetup.com/Toronto-Pivotal-User-Group/ >> >> >> >> > -- Luke Shannon | Sr. Field Engineer - Toronto | Pivotal ------------------------------------------------------------------------- Mobile:416-571-9495 Join the Toronto Pivotal Usergroup: http://www.meetup.com/Toronto-Pivotal-User-Group/
