table of Contents
- 1. Self-introduction
- 2. What are the companies doing business?
- 3. It can be said about your company on a particular business architecture do?
- 4. Cloud Project:
- 5. You have a company on how many servers
- 6. Use a physical machine or Cloud Hosting?
- 7. the company is the number of users?
- 8. know that disaster recovery rank?
- 9. In the operation and maintenance of career, what you have experienced failure?
1. Self-introduction
Interviewer Hello, My name Morningstar, 23 years old, has been working for a year, the company is mainly responsible for XXXXX. I personally good at XXXX technology. These are my current personal experience, ask the interviewer what you have wanted to know?
2. What are the companies doing business?
支付行业:
Alipay, micro-letters, oh receivables, Jingdong IOUs, Jingdong financial
金融行业:
Financial management software, borrowing treasure, millet loans, personal loans
游戏行业:
End of the tour (giant Tencent grand NetEase Jinshan), mobile games (glory of the King Dragon), page tour (sword of the Angel qq farm), live games, gaming competitions, hand-done, forum
直播行业:
Eye teeth to live betta live penguins live gaming YY
电商行业:
Taobao Mall Jingdong Mall Darling family only product
视频行业:
bilibili iQIYI Tencent video
小视频行业:
Vibrato deft Microview
新闻资讯行业:
Tencent news NetEase Weibo Sohu News Today's headlines
社交行业:
QQ micro letter beating silently
体育行业:
Ticket Sports GO Skiing
教育行业:
Mu class IT network Tencent classroom training institutions
小说行业:
Chinese network Pony love palm reading
3. It can be said about your company on a particular business architecture do?
Say that they are most familiar with the operational framework, do not be too simple
Look at the size of the case for the size of the company
Chart
What's the use? What pain points, you can solve any problem?
Item 1: Zabbix project structure:
Apache + php rewirte规则
更新为
nginx + php rewirte规则
项目背景:
1C 1G的配置 用apache+php架构最多200个访问
1C 1G的配置 用nginx+php架构能扩大多倍 1000个访问
项目步骤:
Apache和Nginx都是80端口,不能同时启动,可以提前修改nginx为其他端口后,更新完成再进行修改
用户访问网站流程:
linuxcx.cn ----->dns解析
linuxcx.cn ----->ip访问地址---->访问网站
一个域名可以解析成多个A记录 address
www.xxx.com ----> IP地址
www.xxx.com ----> www.bbb.com ----> IP地址
[d:\~]$ ipconfig /displaydns
Item 2: Database High Availability Architecture:
架构:
单机 主-从 主-主 MHA(√) PXC
MySQL集群
Oracle数据库
postgresql数据库
mongodb
redis
Item 3: GFS shared storage upgrade
软件存储: 共享存储nfs更新为glusterFS(ceph MFS)
硬件存储: NAS(开启nfs 快照 功能强大 价格贵),SAN
Item 4: session sharing
由文件系统,数据库修改到redis中
写到数据库中的痛点有哪些,没有自动清理机制 繁琐,影响性能
放到redis中的优点,自动清理
Item 5: redis do use database cache
搭建redis
redis集群(哨兵, redis-cluster)
Item 6: open proxy cache to achieve separation of static and dynamic load balancing on nginx
https://www.cnblogs.com/lovelinux199075/p/9064431.html
#1.代理服务器端缓存作用
减少后端压力,提高网站并发延时
#2.缓存常见类型
服务器端缓存:代理缓存,获取服务器端内容进行缓存
浏览器端缓存
#3.nginx代理缓存:proxy_cache
Item 7: the station (business site) configured https + ipv6
#需要用到用阿里云实例和域名
upstream{
server 10.0.0.7;
}
location / {
proxy_pass https://
proxy_ssl xxxxxx
}
Tengine + python(django)
Tengine + web
Item 8: Site configuration CDN service
用户 ---> www.linuxcx.cn A 123.78.78.78
用户 ---> www.linuxcx.cn CNAME www.linuxcx.cn cdn.dnsv1.com
---> 解析到cdn节点的IP地址
反向代理缓存:
bind 智能解析: 天津 ---> 解析xxx域名 ---> 解析到天津的cdn节点
上海 ---> 解析xxx域名 ---> 解析到上海的cdn节点
博客配置cdn:
cdn: 添加域名,回源IP地址,过滤参数,生成cname
修改dns解析,域名 A类型 ---> 域名 cname类型
Item 9: zabbix Services
公共设施服务器
zabbix服务器:
zabbix版本升级 zabbix优化 zabbix高可用
Item 10: gitlab warehouse
gitlab仓库
svn迁移到git
jenkins: 实现自动代码上线上线
Item 11: jumpserver: log audit
jumpserver 日志审计 |齐治堡垒机 |麒麟
Item 12: In openvpn online extranet
Item 13: ansible supervisor
ansible批量管理 shell批量管理
Item 14: yum source configuration
Item 15: ntp server
Item 16: cobbler server:
cobbler + zabbix自动化监控 cobbler + openstack计算节点自动部署
Item 17: ELK log
ELK日志项目
项目18: sql语句审计平台
4. 云计算项目:
项目19: ESXI虚拟迁移到KVM
将KVM迁移到ESXI上面
KVM虚拟机热迁移
项目20: openstack搭建
测试环境和开发环境的 kvm虚拟机
搭建openstack 管理测试环境和开发环境
安装部署
为开发开通账号
为开发培训openstack使用方法
上传镜像
增加计算节点
项目21: openstack服务前移
openstack的all-in-one,glance,nova,neutron,dashboard
openstack实现vxlan(vpc)
openstack dashboard 开启https
项目22: docker取代部分业务的虚拟机
将业务前移至docker容器:
制作docker镜像
macvlan网络
把虚拟机关机
项目23: docker register 迁移到harbor
项目24: 将业务前移到k8s上
5. 你上一家公司有多少台服务器
根据架构缩需要的服务器加起来是在40台
业务服务器
6. 用的是物理机还是云主机?
#物理机:
机房在哪里?
* 机房位置在天津的太平洋电信数据中心,在武清那边
* 45台服务器租了3个机柜,每个机柜放了有16台服务器
* 做的raid5,我走之前是打算要换raid10的,会提前买一些硬盘放到IDC机房
* 公司一年租机柜和带宽差不多在50万左右吧,带宽是100M独享的
#云主机:
少云主机? 一个月多少钱?
* 有30台
* 我上家公司一般就是按量付费,具体不太清楚,然后就是财务部定期续费 我还没有接收邮件的资格
* 不用做keepalived 高可用,感觉真的非常方便
7. 上一家公司用户量是多少?
#日活
* 一天时间不定时访问,日活最高在三十几万,也看情况,有时日活也就几万
* 平均下来每分钟差不多都在200左右访问量
* pv每天600W
* uv每天60w左右
* ip每天1w左右
#月活
* 在300万左右
* pv页面访问量在
* uv浏览器访问量
* ip IP访问量
8. 知道灾备等级吗?
9. 在运维的生涯中, 你都遇到哪些故障?
1.代码上线故障
在代码上线的过程中 ctrl+c打断脚本后再次执行不重新执行,出现故障
代码上线的时候上错了,放错其他目录了,一直404
2. web服务云主机故障
开发打开debug,忘记关了,硬盘满了,无法写入日志,程序崩溃,导致业务宕机
3. 物理机服务器: 需要关机的,但是未下架,服务器开了...
占用IP的新服务器上的工作业务直接504了。机房工业用电断了,接了一次ups电源直接顶开机了,被领导一顿骂,一直以为是灵异事件。刚装的redis服务第二天就没了。
4. cdn厂商的故障
https 之前用的http协议,cdn加速的时候有的用户有广告有的没有,后来一查是蓝汛的cdn被入侵了,他的网页信息被改了。后来找蓝汛工作人员吧缓存删除掉了。后来直接改成https了
5. mysql的主从不同步
myisam引擎表损坏了,用的时间太长了,导致数据写不进去,然后数据就不同步了
第一次恢复是先修复表,然后情况数据,然后把不同步的数据一直跳过
主库的表数据多,从库表数据不完整,然后把主库的那张表备份下来
然后把myisam引擎改为了innoDB