当前位置:网站首页>Common optimization of e-commerce server system architecture

Common optimization of e-commerce server system architecture

2022-06-25 20:44:00 Chengshaoting

system optimization :

  • 1: Optimize the maximum number of open files and open processes for all servers
  • 2: Turn on ntp Services automatically synchronize , Keep the time consistent

Component optimization :

ES Optimize :

  • 1: ES Set the memory to the system memory 45%
  • 2: Set up bootstrap.memory_lock: true Parameters , keep JVM Locking memory , Guarantee ES Performance of
  • 3: Set kernel parameters vm.swappiness=1, avoid ES Use to swap, So that ES Query data is slow , Cause system performance bottleneck

Nginx Optimize :

  • 1: Adjust kernel parameters net.ipv4.tcp_syn_retries = 6,net.ipv4.tcp_synack_retries=5
    Optimize nginx And back-end servers 3s Clock timeout retransmission problem
  • 2: Optimize Nginx Parameters of , Solve a large number of problems under high concurrent downforce testing timewait Status causes no availability socket problem

K8s Optimize :

  • 1: close k8s Node flannel.1 and eth0 Packet verification function of network card , solve nginx With the back end k8s Of service Occasional timeout problem

Database optimization :

  • 1: Database optimization is slow sql
  • 2: Adjust the synchronization parameters between active and standby , Avoid data loss caused by excessive delay between active and standby systems

Log optimization :

  • 1: Adjust the log level of all services to ERROR, Reduce the printing of logs , Avoid K8S Frequent eviction of servers
原网站

版权声明
本文为[Chengshaoting]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181341043085.html