Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ops Tool made by Perl Beginner #yapcasia 2012

riywo
September 28, 2012

Ops Tool made by Perl Beginner #yapcasia 2012

You can talk using this slide without any permission:)

riywo

September 28, 2012
Tweet

More Decks by riywo

Other Decks in Programming

Transcript

  1. Trouble Shooting Design System Setup Server On Calling Isu nage

    Sync Info Operation Inspection Develop Tools Capacity Plan
  2. Trouble Shooting Design System Setup Server On Calling Isu nage?

    Sync Info Operation Inspection Develop Tools Capacity Plan
  3. F*cking Query SELECT SQL_CALC_FOUD_ROWS * FROM table WHERE c1 >

    1000 OR c2 != 100 ORDER BY c3 LIMIT 10 OFFSET 100000;
  4. Someone has “Setup Procedure Manual” 1. OS install 1.1 IP

    address 1.2 nameserver 1.3 OS user 2. SSH Configuration 2.1 ... 3. Install Perl 3.1 ...
  5. Someone have “Setup Procedure Manual” 1. OS install 1.1 IP

    address 1.2 nameserver 1.3 OS user 2. SSH Configuration 2.1 ... 3. Install Perl 3.1 ... Operate Manually Check Visually
  6. # ssh $TGT cat /etc/my.cnf | diff -u /etc/my.cnf -

    - server_id = 2323 + server_id = 2324 - log_slave_updaets Yes, this difference is OK If $TGT is Master DB this difference is NG
  7. # ssh $TGT cat /etc/my.cnf | diff -u /etc/my.cnf -

    - server_id = 2323 + server_id = 2324 - log_slave_updaets Yes, this difference is OK If $TGT is Master DB this difference is NG Impossible
  8. Patch, Patch, Patch... patch for a new component many times,

    setup script become a spaghetti code...
  9. Describe test/setup procedures DSL = blueprint.pl (cron,httpd,mysql,...) test { my

    $c = shift; ok ... }; run { my $c = shift; $c->ssh(...) };
  10. server_id = <: $server_id :> default_character_set= <: $char :> Server’s

    my.cnf Text::Xslate::render Run example SSH install
  11. Describe attribute of roles mbga:web => { cron_hour => 1,

    proc_num => 50, } mbga:db:master => {...} game1:web => {...}