This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Source the user config - Mostly useful for setting interface, vip, label as desired | |
| # Example: | |
| # # cat /etc/mha/switch.conf | |
| # vip=172.16.3.1 | |
| # interface=eth2 | |
| # label=eth2:0 | |
| config=/etc/mysql-masterha/vip.conf | |
| [ -e "${config}" ] && . "${config}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- a/mysql56u.spec 2014-04-09 15:24:17.000000000 -0400 | |
| +++ b/mysql56u.spec 2014-04-15 00:42:08.805743802 -0400 | |
| @@ -81,6 +81,7 @@ | |
| Patch32: community-mysql-covscan-signexpr.patch | |
| Patch33: community-mysql-covscan-stroverflow.patch | |
| Patch34: community-mysql-pluginerrmsg.patch | |
| +Patch99: mysql-5.6.17-libevent.patch | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/cmake/libevent.cmake b/cmake/libevent.cmake | |
| index c321e93..b127686 100644 | |
| --- a/cmake/libevent.cmake | |
| +++ b/cmake/libevent.cmake | |
| @@ -60,15 +60,15 @@ MACRO (MYSQL_CHECK_LIBEVENT) | |
| set(LIBEVENT_LIB_PATHS /usr/local/lib /opt/local/lib) | |
| ENDIF() | |
| - find_library(LIBEVENT_LIB event PATHS ${LIBEVENT_LIB_PATHS}) | |
| + find_library(LIBEVENT_LIBRARY event PATHS ${LIBEVENT_LIB_PATHS}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import ConfigParser | |
| import logging | |
| import optparse | |
| import sys | |
| import pyrax | |
| error = logging.error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/trunk/configs/5.6/my-56-terse.cnf b/trunk/configs/5.6/my-56-terse.cnf | |
| index 092e344..9141704 100644 | |
| --- a/trunk/configs/5.6/my-56-terse.cnf | |
| +++ b/trunk/configs/5.6/my-56-terse.cnf | |
| @@ -1,96 +1,104 @@ | |
| -## _______________________________________________________________________ | |
| -## / Rackspace MySQL 5.6 Terse Configuration File \ | |
| -## | | | |
| -## | This is a base configuration file containing the most frequently used | | |
| -## | settings with reasonably defined default values for configuring and | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### _______________________________________________________________________ | |
| ### / Rackspace MySQL 5.6 Terse Configuration File \ | |
| ### | | | |
| ### | This is a base configuration file containing the most frequently used | | |
| ### | settings with reasonably defined default values for configuring and | | |
| ### | tuning MySQL. Note that these settings can likely be further tuned in | | |
| ### | order to get optimum performance from MySQL based upon the database | | |
| ### | configuration and hardware platform. | | |
| ### | | | |
| ### | For many deployments, the only variables which need to be modified | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## _______________________________________________________________________ | |
| ## / Rackspace MySQL 5.6 Terse Configuration File \ | |
| ## | | | |
| ## | This is a base configuration file containing the most frequently used | | |
| ## | settings with reasonably defined default values for configuring and | | |
| ## | tuning MySQL. Note that these settings can likely be further tuned in | | |
| ## | order to get optimum performance from MySQL based upon the database | | |
| ## | configuration and hardware platform. | | |
| ## | | | |
| ## | For many deployments, the only variables which need to be modified | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import pyrax | |
| import ConfigParser | |
| import sys | |
| import getopt | |
| class Config(ConfigParser.ConfigParser): | |
| def __getitems__(self, section): | |
| try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| cli | |
| ~~~ | |
| Simple CLI API | |
| @cli.command | |
| def mycommand(required_arg, option='default', *varargs): | |
| ... | |
| sys.exit(cli.run()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import binascii | |
| import collections | |
| import re | |
| import struct | |
| CodeRange = collections.namedtuple('CodeRange', 'start end') | |
| class EncodingRule(object): | |
| def __init__(self, coderange, pattern, name, initial_code): | |
| self.coderange = coderange |