文章讲到的说 redis 集群指的是 redis-cluster 集群方式问题 :redis-cluster 数据是分片的,那么是如何分片的,增加和减少节点如何处理的redis 使用了一种叫 hash slot 的方式而非一致性hash 算法,增加和减少节点将会迁移某个节点的数据。redis-clu... ...
分类:
其他好文 时间:
2020-05-12 17:03:30
阅读次数:
80
The chemical company NS (Nasty Substances) has three factories: one in the Netherlands, one in Belgium and one in Luxembourg. Chemicals are moved betw ...
分类:
其他好文 时间:
2020-05-08 12:56:48
阅读次数:
78
301 Moved Permanently(永久移动) 被请求的资源已永久移动到新位置,并且将来任何对此资源的引用都应该使用本响应返回的若干个URI之一。如果可能,拥有链接编辑功能的客户端应当自动把请求的地址修改为从服务器反馈回来的地址。除非额外指定,否则这个响应也是可缓存的。新的永久性的URI应当 ...
分类:
Web程序 时间:
2020-05-03 16:30:38
阅读次数:
85
The complete explanation is that 1.0.x and 1.1.x do not have the same naming conventions for the generated libraries. OpenSSL 1.1.x has moved into wha ...
分类:
其他好文 时间:
2020-04-30 11:23:13
阅读次数:
98
工作中现在都是使用 RecyclerView,RecyclerView 中,经常使用到的几个刷新函数如下: 第 1 组 notifyDataSetChanged():无参,用于通知 Adapter 数据源发生变化并刷新。更新方式是所有 item 整体刷新,是最重的刷新方式 notifyItemCha ...
分类:
其他好文 时间:
2020-04-27 22:24:19
阅读次数:
305
1.IdWorker 整体上按照时间自增排序,并且整个分布式系统内不会产生ID碰撞 package util; import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.Ne ...
分类:
其他好文 时间:
2020-04-26 10:41:05
阅读次数:
61
第一章 实时同步服务介绍 1.1 需求背景 1.11,rsync的优点与不足 与传统的cp、tar备份方式相比,rsync具有安全性高、备份迅速、支持增量备份等优点,通过rsync可以解决对实时性要求不高的数据备份需求,例如定期的备份文件服务器数据到远端服务器,对本地磁盘定期做数据镜像等。 随着应用 ...
分类:
其他好文 时间:
2020-04-26 01:55:30
阅读次数:
85
SpringBoot为我们做的自动配置,确实方便快捷,但一直搞不明白它的内部启动原理,这次就来一步步解开SpringBoot的神秘面纱,让它不再神秘。 @SpringBootApplication public class Application { public static void main( ...
分类:
编程语言 时间:
2020-04-22 16:42:37
阅读次数:
76
一键部署rsync服务 [root@m01 conf] cat /server/scripts/rsync.yaml command playbook hosts: 172.16.1.41 tasks: name: setup01:install rsync yum: name: rsync sta ...
分类:
其他好文 时间:
2020-04-20 15:22:10
阅读次数:
63
、检查是否有安装inotify rpm -qa inotify-tools 2、没有先安装epol源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo 3、安装 yum install inot ...
分类:
Web程序 时间:
2020-04-09 12:52:32
阅读次数:
127