In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Jingfeng structure:
Main station, video station, Python station, bbs station, e-book station
LNAMP+Redis has 20 servers in total
4 LAMP,www v bbs python ebook four virtual hosts, using nginx to balance 4 LAMP, static separation, static front-end, dynamic back-end + x mysql one master and multiple slaves, read-write separation, 1 backup crontab+redis cache + monitoring server, 1 stand-alone small website or temporary pressure-bearing standby
The public network IP corresponding to the domain name
Daily visits PV UV IV
Bandwidth
The company has only one operation and maintenance.
Project evaluation: how much is the concurrency, 20 people per second access, 50K home page, so there must be 10m traffic, first go to the computer room to buy bandwidth, general PVx page size = bandwidth
Purchasing server
Hardware configuration
DELL R7309 (2U) R730 R820 (4U), more 1U=4cm, 1 cabinet 42U, two servers 1U apart
CPU Inter strong Xeon E5-2630x2 has 6 cores of 2.4GHz. If you are hyper-threaded, you can see 24 cores, and top will see the number of CPU.
Memory DDR3 32max 16G
Hard disk SAS (15000 rpm) or SATA (), 2.5in fdisk-l look at the hard drive
Data server about 25000, application server about 18000
The data server needs raid10. The larger the memory, the faster the reading speed. JD.com 's online server has 512GB of memory.
The server on the shelf, one or two cabinets, there is an uplink switch in the computer room, the end must buy a 10 gigabit intranet switch, if it is gigabit, buy a gigabit intranet switch, assign us public network IP and bandwidth, and then there must be a switch in the intranet. H3C Magi S550 Magi 24 ports, more than 10,000 pieces, backplane bandwidth, traffic that can be processed at the same time, 256 Gbps10 servers is enough.
Pinching the network cable is also a necessary skill.
Router H3C SR6012, firewall can also, firewall has protection and routing functions, but the firewall port is few, generally a link to the back end, and then put the switch back end
Replace the hard disk in the computer room: confirm which server, what business, whether downtime is required, let the mail be approved by the boss in advance, let the relevant people test the business first after the replacement, and then send an email to the leader.
After the resource pool nginx is balanced is LAMP. We use LAMP as the resource pool. If it is not enough, we will add the maximum number of connections in the lvs+keepalived+ backup machine and connection pool.
New server batch installation system
If you write a script in Windows and you want to convert it in dos2unix, it's really too lame. I have never written a script in Windows before
Kickstart script automatically configures IP, hostname (BJ-IDE-) kernel tuning + shell script, key-free, ansible+zabbix agent, customizes the path of the application, and all the operation records of the operation department form the documentation standard flow.
Nginx+Keepalived, multi-Tomcat, mysql one-master and multi-slave scripts
Release code, (data consistency + rsync server)
Configure monitoring, improve monitoring URL, and ask developers what program code to monitor.
Official release, unified access to the internal network VIP, router mapping public network IP-VIP to do domain name resolution
Document collection writing, device information registration, server password modification
Establish backup mechanism, which data to back up, backup script, backup strategy
Shell compilation of website
1) back up the database
2) nginx,mysql log backup
3) website code backup
4) add crontab task schedule
Migration proc
Find out the services that the original server is running, with and without ports, statistical installation mode, version, data location, configuration files
For i in `mysql-e "show databases;" | grep-vE "mysql | test | schema | Database" `; do mysqldump $I > $i.sql _ done
For i in `ls * .sql | sed's uroot .sqlUniG`; do mysql-e "create database $I"; mysql-uroot-p $I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.