对于昨天 k8s 尼克号发生的触礁事故,我们分析下来主要是2个原因,一是当时4个节点不够用造成部分容器负载过高而宕机,二是 readinessProbe 健康检查配置不合理,造成重启后的容器无法通过健康检查。使用 DaemonSet 是因为我们对 k8s 还不熟悉,在用开渔船(docker swar... ...
分类:
其他好文 时间:
2019-12-15 21:36:07
阅读次数:
98
Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. For example, MovingAverage m = new M ...
分类:
移动开发 时间:
2019-12-12 14:56:35
阅读次数:
127
“ 记录Linux部分常用高级命令” top命令:动态显示当前耗费资源最多的进程信息,3秒刷新一次。 top基本视图: top - 17:11:03 up 6:52, 2 users, load average: 0.00, 0.00, 0.00 Tasks: 82 total, 1 running ...
分类:
系统相关 时间:
2019-12-11 13:25:27
阅读次数:
89
Basis Rule for Tuning (ST03N) ? Average CPU time should be < 50 % of the total response time, otherwise the server (ST06/OS07, OS07) or the running pr ...
分类:
数据库 时间:
2019-12-04 13:07:13
阅读次数:
101
THE UNIVERSITY OF HONG KONGDEPARTMENT OF STATISTICS AND ACTUARIAL SCIENCESTAT6011/7611/8305 COMPUTATIONAL STATISTICS(2019 Fall)Assignment 3, due on No ...
分类:
其他好文 时间:
2019-12-03 19:51:40
阅读次数:
81
下面是题目 后面有代码 1.键盘输入3个整数a,b,c值,求一元二次方程a*X∧2+b*X+c=0(a≠0)的根,结果保留两位小树。 2.编写一个口令输入程序,让用户不停输入口令,直到输对为止,假设口令为100。 3.若一个数恰好等于除它本身外的所有因子之和,则这个数成为完数,例:6点因数是1,2, ...
分类:
编程语言 时间:
2019-11-30 20:55:14
阅读次数:
143
Problem Forecasting time series. Other methods' drawback: even though existing methods (exponential smoothing, auto-regression and moving average-MA, ...
分类:
其他好文 时间:
2019-11-28 18:54:23
阅读次数:
60
[TOC] 无论是 NoSQL,还是大数据领域,HBase 都是非常"炙热"的一门数据库。 本文将对 HBase 做一些基础性的介绍,旨在入门。 一、简介 HBase 是一个开源的、面向列的非关系型分布式数据库,目前是Hadoop体系中非常关键的一部分。 在最初,HBase是基于谷歌的 BigTab ...
分类:
其他好文 时间:
2019-11-27 23:38:27
阅读次数:
109
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:
其他好文 时间:
2019-11-22 01:09:29
阅读次数:
81
鉴于每个月需要把公司上千台的服务的cpu使用利率,CPU负载,内存使用率、网络流量等数据取出,以前是手动通过zabbix的平台去获取,每次都需要花费1-2小时才能完成这个需求,太耗时,因此优化为systat软件采集数据,然后通过python脚本处理/var/log/sa下采集到数据,然后入库到mysql数据库中,以后每次取数据,只需要一行sql代码就能获取到数据,方便快捷,本文把采集数据的脚本截图
分类:
编程语言 时间:
2019-11-21 09:22:35
阅读次数:
83