Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.73 KB | None | 0 0
  1. [client]
  2. user = skysql
  3. password = skyvodka
  4. port = 5012
  5. socket = /tmp/mysql_sandbox5012.sock
  6.  
  7. [mysqld]
  8. read_only=on
  9.  
  10. sync_binlog = 1
  11. thread_handling=pool-of-threads
  12. extra-port=5112
  13. extra-max-connections=10
  14.  
  15. # semisync
  16. plugin-load="semisync_master.so;semisync_slave.so;spider=ha_spider.so;spider_alloc_mem=ha_spider.so"
  17. rpl_semi_sync_master=ON
  18. rpl_semi_sync_slave=ON
  19. loose_rpl_semi_sync_master_enabled=ON
  20. loose_rpl_semi_sync_slave_enabled=ON
  21. slave-parallel-threads = 6
  22. slave-parallel-mode=optimistic
  23. log_slave_updates
  24. sync_binlog=1
  25.  
  26. log_bin
  27. binlog_format=ROW
  28. skip_name_resolv
  29.  
  30. #test.replicate_do_table=tata.test
  31. #test.replicate-rewrite-db=test->tata
  32. #replicate-same-server-id
  33. net_write_timeout = 300
  34. net_read_timeout = 300
  35. collation-server = utf8_general_ci
  36. init_connect='SET NAMES utf8'
  37. character-set-server = utf8
  38. #skip-character-set-client-handshake
  39.  
  40.  
  41. user = root
  42. port = 5012
  43. socket = /tmp/mysql_sandbox5012.sock
  44. basedir = /usr/local/mysql
  45. datadir = /var/lib/skysql/db-78b9ef72/data
  46. tmpdir = /var/lib/skysql/db-78b9ef72/tmp
  47. pid-file = /var/lib/skysql/db-78b9ef72/data/mysql_sandbox5012.pid
  48. #log-slow-queries = /var/lib/skysql/db-78b9ef72/data/msandbox-slow.log
  49. #log = /var/lib/skysql/db-78b9ef72/data/msandbox.log
  50. #
  51. # additional options passed through 'my_clause'
  52. #
  53. server-id=5012
  54. #
  55. # additional options from /usr/local/skysql/ncc/etc/spider.template
  56. #
  57.  
  58. performance_schema = 0
  59. innodb_autoinc_lock_mode = 2
  60. innodb_stats_on_metadata = 0
  61. innodb_buffer_pool_instances = 1
  62. innodb_flush_method = O_DIRECT
  63. innodb_log_file_size = 1G
  64. innodb_log_files_in_group=8
  65. innodb_buffer_pool_size = 1G
  66. innodb_additional_mem_pool_size = 16M
  67. innodb_log_buffer_size = 512M
  68. innodb_max_dirty_pages_pct = 30
  69. innodb_file_per_table
  70. innodb_doublewrite = 1
  71. innodb_flush_log_at_trx_commit = 1
  72. innodb_adaptive_hash_index = 0
  73. innodb_write_io_threads = 16
  74. innodb_flush_neighbors = 0
  75. innodb_thread_concurrency = 0
  76. innodb_defragment = 1
  77. innodb_open_files = 16384
  78. innodb_purge_threads = 8
  79. innodb_buffer_pool_populate=0
  80. innodb_change_buffering=none
  81. innodb_concurrency_tickets =5000
  82. innodb_io_capacity=20000
  83. innodb_io_capacity_max=40000
  84.  
  85.  
  86. back_log=128
  87. max_connections = 1024
  88. table_open_cache = 2048
  89. table_definition_cache = 2048
  90. max_allowed_packet = 16M
  91. binlog_cache_size = 1M
  92. max_heap_table_size = 64M
  93. thread_cache_size = 128
  94. query_cache_size = 0
  95. query_cache_limit = 2M
  96. ft_min_word_len = 4
  97. thread_stack = 192K
  98. tmp_table_size = 512K
  99. expire_logs_days=7
  100. sort_buffer_size = 512K
  101. join_buffer_size = 2M
  102. key_buffer_size = 256M
  103. key_cache_block_size=4K
  104. #spider_use_handler=0
  105.  
  106.  
  107. spider_bgs_mode=1
  108. spider_casual_read=1
  109. #spider_bgs_mode
  110. # Mode of background search.
  111. # -1 : The table parameter is adopted.
  112. # 0 : Background search is disabled.
  113. # 1 : Background search is used if search with no lock.
  114. # 2 : Background search is used if search with no lock or shared lock.
  115. # 3 : Background search is used regardless of the lock.
  116. # The default value is -1
  117.  
  118. #spider_bka_mode=1
  119. #spider_bka_engine=myisam
  120. optimizer_switch="engine_condition_pushdown=on"
  121. loose_spider_conn_recycle_mode=1
  122. # ++spider_conn_recycle_mode
  123. # It behaves in that case though the connection is recycled as for the spider
  124. # storage engine when the transaction is completed.
  125. # 0 : Disconnect.
  126. # 1 : It recycles by all sessions.
  127. # 2 : It recycles in the same session.
  128. # The default value is 0
  129.  
  130.  
  131.  
  132. #spider_use_hs_read=1
  133. #spider_use_hs_write=1
  134.  
  135. loose_spider_reset_sql_alloc=0
  136. #spider_use_pushdown_udf=1
  137.  
  138.  
  139. spider_crd_mode=1
  140.  
  141. # spider_crd_bg_mode
  142. # Mode of cardinality confirmation at background.
  143. # (Only when crd_mode is 1 or 2 and crd_interval is bigger than 0,
  144. # it is effective.)
  145. # -1 : The table parameter is adopted.
  146. # 0 : Background confirmation is disabled.
  147. # 1 : Background confirmation is enabled.
  148. # The default value is -1
  149.  
  150. spider_crd_interval=4
  151. # spider_crd_interval
  152. # Interval of cardinality confirmation.(second)
  153. # (Only when crd_mode is 1 or 2, it is effective.)
  154. # Spider always get the newest information from remote servers, if this
  155. # parameter is set to 0.
  156. # -1 : The table parameter is adopted.
  157. # 0 or more : Interval of cardinality confirmation.
  158. # The default value is -1
  159.  
  160. spider_crd_bg_mode=1
  161. # spider_crd_mode
  162. # Mode of cardinality confirmation.
  163. # -1,0 : The table parameter is adopted.
  164. # 1 : The show command is used.
  165. # 2 : The information schema is used.
  166. # 3 : The explain is used.
  167. # The default value is -1
  168.  
  169. spider_crd_sync=0
  170. # spider_crd_sync
  171. # Cardinality synchronization in partitioned table.
  172. # -1 : The table parameter is adopted.
  173. # 0 : No synchronization.
  174. # 1 : Cardinality is synchronized when opening a table.
  175. # Then no synchronization.
  176. # 2 : Synchronization.
  177. # The default value is -1
  178.  
  179. # spider_crd_type
  180. # Type of cardinality calculation.
  181. # (Only when crd_mode is 1 or 2, it is effective.)
  182. # -1 : The table parameter is adopted.
  183. # 0 : The crd_weight is used as a fixed value.
  184. # 1 : The crd_weight is used as an addition value.
  185. # 2 : The crd_weight is used as a multiplication value.
  186. # The default value is -1
  187.  
  188. spider_sync_trx_isolation=0
  189. #++ spider_sync_trx_isolation
  190. # Local transaction isolation level synchronous existence to remote server.
  191. # 0 : It doesn't synchronize.
  192. # 1 : It synchronizes.
  193. # The default value is 1
  194.  
  195.  
  196. spider_sync_autocommit=0
  197. # spider_sync_autocommit
  198. # Local autocommit synchronous existence to remote server.
  199. # 0 : It doesn't synchronize.
  200. # 1 : It synchronizes.
  201. # The default value is 1
  202.  
  203.  
  204. # spider_semi_trx
  205. # Mode that executes transaction during one SQL execution for autocommit=1.
  206. # (Only when spider_sync_autocommit is 1, it is effective.)
  207. # 0 : OFF
  208. # 1 : ON
  209. # The default value is 1
  210.  
  211. # spider_semi_trx_isolation
  212. # The consistency set during one SQL execution is used.
  213. # (Only when spider_sync_trx_isolation is 1, it is effective.)
  214. # -1 : OFF
  215. # 0 : READ UNCOMMITTED
  216. # 1 : READ COMMITTED
  217. # 2 : REPEATABLE READ
  218. # 3 : SERIALIZABLE
  219. # The default value is -1
  220.  
  221.  
  222. spider_support_xa
  223. #spider_support_xa
  224. # Support xa transaction by spider.
  225. # internal_xa is available in spider_support_xa=0.
  226.  
  227.  
  228.  
  229.  
  230. # spider_internal_xa
  231. # Option to switch usual transaction to xa transaction internally.
  232. # 0 : It doesn't switch.
  233. # 1 : It switches.
  234. # The default value is 0
  235. # The rule of internal xa id is the following.
  236. # gtrid:MySQL's thread id
  237. # bqual:MySQL's server id
  238. # formatID:1
  239. # Please set different server id in the all MySQL instances for generating
  240. # different xa id.
  241.  
  242.  
  243. # spider_split_read=?
  244. # spider_split_read
  245. # When SQL(SELECT) internally issued to a remote server is executed, it is a
  246. # number of records in which division is acquired as for the execution result.
  247. # -1 : The table parameter is adopted.
  248. # 0 or more : Number of records.
  249. # The default value is -1
  250.  
  251. #spider_quick_mode=0
  252. #spider_quick_mode
  253. # The retrieval result from a remote server is acquired by acquisition
  254. # one by one.
  255. # -1 : The table parameter is adopted.
  256. # 0 : It acquires it collectively.
  257. # 1 : Acquisition one by one.If it discontinues once, and it will need
  258. # it later, it retrieves it again when there is interrupt on the way.
  259. # 2 : Acquisition one by one.Interrupt is waited for until end of getting
  260. # result when there is interrupt on the way.
  261. # The default value is -1
  262.  
  263.  
  264. # spider_local_lock_table
  265. # Remote server transmission when lock tables is executed at local.
  266. # 0 : Transmits.
  267. # 1 : Don't transmit.
  268. # The default value is 0
  269.  
  270. # spider_lock_exchange
  271. # Lock in share mode is converted in lock tables read and for update is
  272. # converted into lock tables write.
  273. # (Only when semi_table_lock of the table parameter is one, it is effective.)
  274. # 0 : It doesn't convert it.
  275. # 1 : It converts it.
  276. # The default value is 0
  277. #
  278. #
  279. spider_sts_sync=0
  280. spider_remote_sql_log_off=1
  281. spider_remote_autocommit=1
  282. spider_direct_dup_insert=1
  283.  
  284. loose_handlersocket_port= 20000
  285. loose_handlersocket_port_wr= 20001
  286. loose_handlersocket_threads= 2
  287. loose_handlersocket_threads_wr= 1
  288. loose_handlersocket_support_merge_table= 0
  289. loose_handlersocket_direct_update_mode= 0
  290. loose_handlersocket_unlimited_boundary= 65536
  291. loose_handlersocket_bulk_insert= 0
  292. loose_handlersocket_bulk_insert_timeout= 0
  293. loose_handlersocket_general_log= 1
  294. loose_handlersocket_timeout= 30
  295. loose_handlersocket_close_table_interval=2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement