질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

아파치 서버 부하때문에 질문드립니다

작성자 정보

  • 이윤화 작성
  • 작성일

컨텐츠 정보

본문

L4 + 웹가속기 데모
웹서버 6대에 DB 한대를 운영하고 있는데요
웹서버는 NFS 서버를 통해서 마운트후 웹서비스를 하고있습니다
아파치는 2.2 대
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_expires.c
  mod_unique_id.c
  mod_setenvif.c
  worker.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

work 방식으로 구현을 해서 사용중인데요
일방문자가 14만정도 됩니다 부하가 서버 6대에 다있어서
top 으로 보면
top - 16:16:26 up 11:32,  1 user,  load average: 26.18, 22.83, 18.53
Tasks: 114 total,   1 running, 113 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.3%us,  3.6%sy,  0.0%ni, 94.8%id,  0.1%wa,  0.2%hi,  0.9%si,  0.0%st
Mem:   4147156k total,  1337536k used,  2809620k free,   111948k buffers
Swap:  8385888k total,        0k used,  8385888k free,   648184k cached

사양은 Xeon(R) CPU           E5420 1cpu
                             메모리 4기가
KeepAlive  Off
MaxKeepAliveRequests 100
KeepAliveTimeout 1
Timeout 150

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       50
#    MaxSpareServers      100
    MaxClients          1024
    MaxRequestsPerChild   0
</IfModule>

이 환경입니다


DB쪽은 쿼리가 특별히 걸리는것이 없습니다 show processlist;


Id     | User | Host      | db   | Command | Time | State | Info             |
+--------+------+-----------+------+---------+------+-------+------------------+
| 140603 | root | localhost | NULL | Query   |    0 | NULL  | show processlist |

sleep 는 30초 안으로 사라져서요
로드가 평균 100정도 되서 아파치를 재시작하지 않으면 웹이 구동이안됩니다

도대체 무슨이유인지 궁금합니다

 

관련자료

댓글 1

이창목님의 댓글

  • 이창목
  • 작성일
nfs 구성에서 로컬디스크 구성으로 테스트해보시기 바랍니다.

nfs 구성에서 네트웍이 원할하지 않을때 부하가 올라가는 경우가 있었습니다.

웹서버 access_log 가 쌓이고 있다면 로그가 쌓이지 않게 하시구요

공지사항


뉴스광장


  • 현재 회원수 :  60,076 명
  • 현재 강좌수 :  36,001 개
  • 현재 접속자 :  391 명