Skip to content

Instantly share code, notes, and snippets.

@yoku0825
Created December 4, 2014 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoku0825/4456611e27f8f44865e3 to your computer and use it in GitHub Desktop.
Save yoku0825/4456611e27f8f44865e3 to your computer and use it in GitHub Desktop.
MySQL FabricつらいAdvent Calendar 2014 4日目 http://qiita.com/advent-calendar/2014/mysql_fabric
  • "when"がUNIXTIMEの指数表記。。
$ mysqlfabric group activate my_second_fabric
Password for admin:
Fabric UUID:  5ca1ab1e-a007-feed-f00d-cab3fe13249e
Time-To-Live: 1

                                uuid finished success result
------------------------------------ -------- ------- ------
ab7d0f5b-5a8d-4842-9070-67823408b387        1       1      1

state success          when                                                   description
----- ------- ------------- -------------------------------------------------------------
    3       2   1.41759e+09 Triggered by <mysql.fabric.events.Event object at 0x34c6850>.
    4       2   1.41759e+09                           Executing action (_activate_group).
    5       2   1.41759e+09                            Executed action (_activate_group).
  • ログももちろんUNIXTIME表記。
$ less /var/log/fabric.log
..
[INFO] 1416566116.558246 - MySQL-RPC-Purger - Force closing connection id 27: timed out datetime.timedelta(0, 327, 508333) >= datetime.timedelta(0, 300)
[INFO] 1416566176.570450 - MySQL-RPC-Purger - Force closing connection id 28: timed out datetime.timedelta(0, 315, 744691) >= datetime.timedelta(0, 300)
[INFO] 1416713515.632662 - MySQL-RPC-Session-29 - User 'admin' authenticated
[WARNING] 1416713550.240787 - FailureDetector(my_first_fabric) - Server (4b7036a9-63fc-11e4-942e-fa163e020fd0) in group (my_first_fabric) is unreachable.
[WARNING] 1416713552.247191 - FailureDetector(my_first_fabric) - Server (4b7036a9-63fc-11e4-942e-fa163e020fd0) in group (my_first_fabric) is unreachable.
[WARNING] 1416713554.253462 - FailureDetector(my_first_fabric) - Server (4b7036a9-63fc-11e4-942e-fa163e020fd0) in group (my_first_fabric) is unreachable.
..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment