摘要: 【编者的话】用了Docker,好处挺多的,但是有一个不大不小的问题,它会一不小心占用太多磁盘,这就意味着我们必须及时清理。作为一个有信仰的技术公司,我们Fundebug的后台采用了酷炫的全Docker化架构,所有服务,包括数据库都运行在Docker里面。这样做当然不是为了炫技,看得清楚的好处还是不少 阅读全文
posted @ 2019-11-12 10:08 alexhe 阅读(661) 评论(0) 推荐(0) 编辑
摘要: deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted univ 阅读全文
posted @ 2019-11-11 09:48 alexhe 阅读(2290) 评论(0) 推荐(0) 编辑
摘要: 查看有哪些索引和建索引的语句:select * from pg_indexes where tablename='student_class_hour_report_view';-- 查出所有物化视图和表,索引大小并排序: SELECT inet_server_addr() AS instance_ 阅读全文
posted @ 2019-11-09 16:38 alexhe 阅读(888) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-10-28 23:26 alexhe 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 架构设计图:etcd保存了整个集群的状态; apiserver提供了资源操作的唯一入口,并提供认证、授权、访问控制、API注册和发现等机制; controller manager负责维护集群的状态,比如故障检测、自动扩展、滚动更新等; scheduler负责资源的调度,按照预定的调度策略将Pod调度 阅读全文
posted @ 2019-09-20 10:39 alexhe 阅读(185) 评论(0) 推荐(0) 编辑
摘要: master:kubectl操作api-server 增删改查,scheduler调度 ,controller manager控制应用副本,etcd存储应用状态 node:pod,kube-proxy Master:集群控制节点,负责整个集群的管理和控制。 API Server: 提供接口,资源增删改查入口。 Controller Manager: 所有资源对象的自动化控制中心。 Sched... 阅读全文
posted @ 2019-08-31 01:34 alexhe 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 华为: console设置密码开始 system-view //进入系统视图 <Huawei>sy<Huawei>system-view Enter system view, return user view with Ctrl+Z.[Huawei] sysname //修改设备名 [R1]user 阅读全文
posted @ 2019-05-27 11:31 alexhe 阅读(974) 评论(0) 推荐(0) 编辑
摘要: v1.14 所有机器: swapoff -a apt-get install docker.io systemctl enable docker.service master上执行: kubeadm init --kubernetes-version=v1.14.0 --pod-network-ci 阅读全文
posted @ 2019-04-03 19:02 alexhe 阅读(398) 评论(0) 推荐(0) 编辑
摘要: iptables封掉少量ip处理是没什么问题的,但是当有大量ip攻击的时候性能就跟不上了,iptables是O(N)的性能。而ipset就像一个集合,把需要封闭的ip地址放入这个集合中,ipset 是O(1)的性能,用的hash方式所以特别快。 一、软件及安装 1、iptables(一般linux都 阅读全文
posted @ 2019-04-02 16:00 alexhe 阅读(548) 评论(0) 推荐(0) 编辑
摘要: https://microk8s.io/ video guide: sudo snap install microk8s --classic #snap install microk8s --classic --channel=1.12/stable #microk8s.status microk8 阅读全文
posted @ 2019-04-02 12:21 alexhe 阅读(921) 评论(0) 推荐(0) 编辑