`
xitonga
  • 浏览: 587254 次
文章分类
社区版块
存档分类
最新评论

MySQL Cluster配置文件-SQL节点4G内存

 
阅读更多
# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.


# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3307
socket = /tmp/mysql.sock


# Here follows entries for some specific programs


# The MySQL server
[mysqld]
port = 3307
socket = /tmp/mysql.sock
ndbcluster
ndb-connectstring=10.100.200.36
max_connections=2000


skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8


# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking


# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin


# binary logging format - mixed recommended
binlog_format=mixed


# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1


# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin


# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /usr/local/mysql/data
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /usr/local/mysql/data
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 256M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 64M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50


[mysqldump]
quick
max_allowed_packet = 16M


[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates


[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M


[mysqlhotcopy]
interactive-timeout
分享到:
评论

相关推荐

    mysql-cluster双机集群.rar

    linux搭建mysql-cluster双机集群 管理节点:192.168.42.137.192.168.42.139 数据节点-SQL节点IP:192.168.42.137 数据节点-SQL节点IP:192.168.42.139 serverA:192.168.42.137 serverB:192.168.42.139 不管centos,...

    CentOS安装Mysql_Cluster集群

    CentOS安装Mysql_Cluster集群---1管理节点2数据节点2SQL节点(已测试完成)

    利用MySQL Cluster 7.0 + LVS 搭建高可用环境

    是这样安排这些服务器的,192.168.0.2 作为 MySQL Cluster 的管理节点,2 ~ 6 既做数据节点(DATA node),也做SQL节点(SQL node),7 ~ 10 也做SQL节点。LVS采用 VS/DR 的模式,因此把 192.168.0.2 也同时作为 LVS 的 ...

    CentOS中mysql cluster安装部署教程

    一、安装要求 安装环境:CentOS-6.5-32bit 软件名称:mysql-cluster-gpl-7.2.25-linux2.6-i686.tar.gz 下载地址:http://mysql.mirror.kangaroot.net/Downloads/ 软件包:mysql-cluster...sql节点1(SQL1): 192.168.1.7

    win2003服务器下配置 MySQL 群集(Cluster)的方法

    MySQL 群集是一种技术,该技术允许在无共享的系统中... 管理服务器(MGM节点)负责管理 Cluster 配置文件和 Cluster 日志。Cluster 中的每个节点从管理服务器检索配置数据。当数据节点内出现新的事件时,节点将关于这类

    MYSQL集群+HA高可用实战【MySQL性能调优】.

    MySQL Cluster 是用于解决高可用和高可靠性的解决方案。 MySQL Cluster 具有故障恢复、节点修复、数据同步、非单点故障等优点。 MySQL Cluster是为提供... MySQL Cluster由3类节点组成:管理节点、数据节点、SQL节点。

    unbuntu详细安装mysqlcluster

    一台虚拟机中安装一个管理节点,2个数据几点,2个SQL节点,初学者通过一台虚拟机就可以搭建起mysqlcluster环境,进行测试方便,不需要多台机器。

    MySQL集群配置与使用(Windows环境)

    Windows环境下MySQL集群的搭建,使用了三个节点,第一个节点作为管理节点,第二个节点作为数据节点A和SQL节点A,第三个节点作为数据节点B和SQL节点B。 此外,还演示了如何使用图形化客户端管理MySQL集群,新建数据库...

    MySQL集群

    MySQL集群主要包括三个组成部分:管理节点、数据节点、SQL节点 管理节点(MGM):管理MySQL Cluster内的其他节点,提供配置数据,启动并停止节点、运行备份等 数据节点:保存Cluster的数据 SQL节点:用来访问Cluster...

    MySQL集群环境搭建.docx

    3)停止SQL节点的命令:/usr/local/mysql/bin/mysqladmin -uroot shutdown 4)SQL Node上连接MySQL:/usr/local/mysql/bin/mysql -u root –p 执行之后就是MySQL控制台了,里面可以继续输入命令。 测试集群环境: ...

    MySQL分布式集群Mycat权威指南中文版

    支持galera for mysql集群,percona-cluster或者mariadb cluster,提供高可用性数据分片集群; 自动故障切换,高可用性; 支持读写分离,支持MySQL双主多从,以及一主多从的模式; 支持全局表,数据自动分片到多个...

    mysql-cluster

    MYSQL集群,对象:一个管理器,2个数据节点,1个SQL节点。

    MySQL Cluster如何创建磁盘表方法解读

    一、概念 MySQL Cluster采用一系列的Disk Data objects来实现磁盘表。 Tablespaces:作用是作为其他Disk Data objects的容器。 Undo log files:存储事务进行回滚需要的信息,一个或者多个undo log files组成一个log...

    MySQL Cluster集群的初级部署教程

     它由一组计算机构成,每台计算机上均运行者多种进程,包括mysql服务器,NDB cluster的数据节点,管理服务启,以及专门的数据访问程序  所有的这些节点构成一个完整的mysql集群体系.数据保存在”NDB存储服务器”的存储...

    TenDB Cluster是腾讯游戏CROS DBA团队提供的MySQL分布式关系型数据库解决方案

    TenDB Cluster是腾讯游戏CROS DBA团队提供的MySQL...Tdbctl是集群的中控节点,是腾讯游戏CROS DBA团队基于TenDB开发(主要复用TenDB自身的SQL解析能力及MGR能力),主要提供集群路由管理、集群变更、集群监控等能力。

    MySQL PXC构建一个新节点只需IST传输的方法(推荐)

    IST 发生的条件:This is done using caching mechanism on nodes (即只发生在之前集群里的节点数据还有在缓存中) 判断方法: mysql&gt; show global status like 'wsrep_local_cached_downto'; +-----------

    nacos-server-1.2.0.zip

    nacos-mysql.sql 文件中的 permissions 表, 创建的联合唯一键超长, sql文件里是512长度, 导致报 Specified key was too long; max key length is 767 bytes 解决方案1: 直接缩短到255长度 解决方案2: ...

    python实现mysql的读写分离及负载均衡

    因为从网上了解到情况来看,很少公司在使用mysql-cluster,大多数企业都会选择第三方代理软件,例如MySQL Proxy、Mycat、haproxy等,但是这会引起另外一个问题:单点故障(包括mysql-cluster:管理节点)。如果要解决...

    详解MySQL集群搭建

    MySQL Cluster允许在无共享的系统中部署“内存中”数据库集群,通过无共享体系结构,系统能够使用廉价的硬件,而且对软硬件无特殊要求。此外,由于每个组件有自己的内存和磁盘,不存在单点故障。 实际上,MySQL集群...

Global site tag (gtag.js) - Google Analytics