rabbit | kafka | |
---|---|---|
创建时间 | 2007 | 2011 |
开发语言 | erlang | scala |
AMQP | SUPPORT | NO |
AGENT | SMART(broker-centric) keeps track of consumer state | dumb(producer-centric) |
存储空间 | in-memory | disk |
INGRESS VOLUME | 20K messages/sec | 100k/sec messages/sec |
CONSUMERS | mostly online(balancing load to many consumer) | online and batch consumer |
ROUTING | exchange, binding | simple |
history | N/A | replay(删除by size 或时间) |
数据压缩 | N | Y |
SPRING SUPPORT | weak | strong |
安全 | RBAC backed by a built-in data store, LDAP | JAAS role based access |
管理 | Web 和 CLI | JMX 和 CLI |
阿里云Maven中央仓库为 阿里云云效 提供的公共代理仓库
打开 maven 的配置文件( windows 机器一般在 maven 安装目录的 conf/settings.xml ),
在
<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
innodb-memcached-multiple-get-range-query
native partitioning in-place APIs
[mysqld]
server-id = 2
relay-log-index = slave-relay-bin.index
relay-log = slave-relay-bin
mysql>CHANGE MASTER TO MASTER_HOST = 'db2',MASTER_PORT = 3306, MASTER_USER = 'repl_user', MASTER_PASSWORD = 'xyzzy';
mysql> START SLAVE;
whether MySQL Server supports partitioning
mysql -u root -p123456 -e "SHOW PLUGINS;" |grep partition
mysql>SET GLOBAL log_output = 'FILE';
mysql>SET GLOBAL general_log = 'ON';
mysql>SHOW VARIABLES WHERE Variable_name LIKE 'general_log_file'
SHOW VARIABLES WHERE Variable_name LIKE 'sql_mode';
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value |
+---------------+-------------------------------------------------------------------------------------------------------------------------------------------+
| sql_mode | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
[mysqld]
sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
mysql> SHOW CREATE TABLE <tablename>;
[mysqld]
log-bin = master-bin
log-bin-index = master-bin.index
server-id = 1
Grant the user to retrieve the binary log from the master
mysql>CREATE USER repl_user;
GRANT REPLICATION SLAVE ON *.* TO repl_user IDENTIFIED BY 'xyzzy';
RDBMS使用B+树专门针对磁盘存储而优化的N叉排序树 NoSQL使用LSM树