小时? 发表于 2018-11-6 11:10:48

codis实现redis分片和在线扩展

## codis自带有一个启动脚本,会启动两个codis-server,监听端口为6381和6382  
#./start_redis.sh
  
sleep 3s
  
09 Apr 14:28:02.796* Increased maximum number of open files to 10032 (it was originally set to1024).
  
                _._
  
         _.-``__ ''-._
  
      _.-``   `.`_.''-._         Redis 2.8.13 (1e823fd3/1) 64 bit
  
.-`` .-```. ```\/    _.,_ ''-._
  
(   '      ,       .-` | `,    )   Running in stand alone mode
  
|`-._`-...-` __...-.``-._|'` _.-'|   Port: 6381
  
|   `-._   `._    /    _.-'    |   PID: 6294
  
`-._   `-._`-./_.-'   _.-'
  
|`-._`-._   `-.__.-'    _.-'_.-'|
  
|   `-._`-._      _.-'_.-'    |          http://redis.io
  
`-._   `-._`-.__.-'_.-'    _.-'
  
|`-._`-._   `-.__.-'    _.-'_.-'|
  
|   `-._`-._      _.-'_.-'    |
  
`-._   `-._`-.__.-'_.-'    _.-'
  
      `-._   `-.__.-'    _.-'
  
          `-._      _.-'
  
            `-.__.-'
  

  
09 Apr14:28:02.814 # Server started, Redis version 2.8.13
  
09 Apr14:28:02.814 # WARNING overcommit_memory is set to 0! Background save may failunder low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to/etc/sysctl.conf and then reboot or run the command 'sysctlvm.overcommit_memory=1' for this to take effect.
  
09 Apr14:28:02.814 * The server is now ready to accept connections on port 6381
  
09 Apr14:28:02.795 * Increased maximum number of open files to 10032 (it wasoriginally set to 1024).
  
                _._
  
         _.-``__ ''-._
  
      _.-``   `.`_.''-._         Redis 2.8.13 (1e823fd3/1) 64 bit
  
.-`` .-```. ```\/    _.,_ ''-._
  
(   '      ,       .-` | `,    )   Running in stand alone mode
  
|`-._`-...-` __...-.``-._|'` _.-'|   Port: 6382
  
|   `-._   `._    /    _.-'    |   PID: 6295
  
`-._   `-._`-./_.-'   _.-'
  
|`-._`-._   `-.__.-'    _.-'_.-'|
  
|   `-._`-._      _.-'_.-'    |          http://redis.io
  
`-._   `-._`-.__.-'_.-'    _.-'
  
|`-._`-._   `-.__.-'    _.-'_.-'|
  
|   `-._`-._      _.-'_.-'    |
  
`-._   `-._`-.__.-'_.-'    _.-'
  
      `-._   `-.__.-'    _.-'
  
          `-._       _.-'
  
            `-.__.-'
  

  
09 Apr14:28:02.811 # Server started, Redis version 2.8.13
  
09 Apr14:28:02.811 # WARNING overcommit_memory is set to 0! Background save may failunder low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to/etc/sysctl.conf and then reboot or run the command 'sysctlvm.overcommit_memory=1' for this to take effect.
  
09 Apr 14:28:02.812 * The server is nowready to accept connections on port 6382


页: [1]
查看完整版本: codis实现redis分片和在线扩展