使用HeartBeat实现高可用HA的配置过程详解 一、写在前面 HA即(high available)高可用,又被叫做双机热备,用于关键性业务。简单理解就是,有2台机器 A 和 B,正常是 A 提供服务,B 待命闲置,当 A 宕机或服务宕掉,会切换至B机器继续提供服务。常见的实现高可用的开源软件有 ...
分类:
其他好文 时间:
2017-05-28 23:48:08
阅读次数:
296
time模块 time模块提供各种操作时间的函数 #1、时间戳 1970年1月1日之后的秒 #2、元组 包含了:年、日、星期等... time.struct_time #3、格式化的字符串 2014-11-11 11:11 (1)asctime(p_tuple=None) def asctime(p ...
分类:
其他好文 时间:
2017-05-28 16:53:18
阅读次数:
201
Description There are N guests checking in at the front desk of the hotel. 2K (0 ≤ 2K ≤ N) of them are twins.There are M rooms available. Each room ha ...
分类:
其他好文 时间:
2017-05-28 14:58:56
阅读次数:
208
root@liuhan888:/home/liuhan168# lsb_release -aNo LSB modules are available.Distributor ID: DebianDescription: Debian GNU/Linux 8.6 (jessie)Release: 8. ...
分类:
其他好文 时间:
2017-05-28 13:54:56
阅读次数:
283
iOS7上tableView的切割线左边短了一点,要实现和iOS6中的效果还是有方法的,UITableView头文件中个属性: @property (nonatomic) UIEdgeInsets separatorInsetNS_AVAILABLE_IOS(7_0)UI_APPEARANCE_SE ...
分类:
移动开发 时间:
2017-05-28 10:51:52
阅读次数:
173
问题: 报错信息如下 [root@kube-master iemp]# kubectl logs equipment-139404108-7mc14 -n iemp2017-05-27 05:41:06,250 INFO [org.wildfly.swarm] (main) WFSWARM0013: ...
分类:
其他好文 时间:
2017-05-27 15:15:48
阅读次数:
516
一、查看Ubuntu版本号 方法一 root@wiki:~# cat /etc/issue Ubuntu 14.04.1 LTS \n \l 方法二 root@wiki:~# sudo lsb_release -a No LSB modules are available. Distributor ...
分类:
系统相关 时间:
2017-05-26 23:15:09
阅读次数:
271
1、默认情况下Ubuntu的网络配置文件为:sudovim/etc/network/interfaces#Thisfiledescribesthenetworkinterfacesavailableonyoursystem#andhowtoactivatethem.Formoreinformation,seeinterfaces(5).source/etc/network/interfaces.d/*#Theloopbacknetworkinterfaceautoloifacelo..
分类:
系统相关 时间:
2017-05-26 21:57:20
阅读次数:
211
系统监控 top命令:显示系统上正在运行的进程、它是系统管理员最重要的工具之一、被广泛用于监视服务器的负载 top命令会显示系统的很多信息。我们需要理解不同部分输出的意义:默认运行时,top命令会显示如下输出: 1.1 系统运行时间和平均负载: 1.2 任务: 第二行显示的是任务或者进程的总结。进程 ...
分类:
系统相关 时间:
2017-05-26 20:41:43
阅读次数:
312
系统监控 1、功能:为了保证服务器的正常运行。一般监控3种状态:CPU的状态、硬盘的状态、内存的状态 2、命令top——检测系统各种进程占用的资源(相当于win任务管理器) 3、CPU的利用率——实际使用时间除以本身工作时间 CPU的平均负载——有多少任务需要执行除以可以执行的任务 4、平均负载系统 ...
分类:
系统相关 时间:
2017-05-26 20:39:52
阅读次数:
229