Apache MPM event

Web service 2010. 2. 8. 13:11


http://httpd.apache.org/docs/2.2/mod/event.html

아파치에 MPM event라는 것이 있었다. 확인을 해보니. 정식 버젼은 아니지만.
Keep alive 문제에 대한 고민, 해결 철학이 들어가 있다.

요청과 Keep Alive한 아파치 요청을 그대로 맺는 것이 아니라, 요청을 처리하는 쓰레드를 따로 두도록 하여 분산된 처리를 할 수 있게 하는데 목적을 둔 것 같다.


This MPM tries to fix the 'keep alive problem' in HTTP. After a client completes the first request, the client can keep the connection open, and send further requests using the same socket. This can save signifigant overhead in creating TCP connections. However, Apache traditionally keeps an entire child process/thread waiting for data from the client, which brings its own disadvantages. To solve this problem, this MPM uses a dedicated thread to handle both the Listening sockets, and all sockets that are in a Keep Alive state.

The MPM assumes that the underlying apr_pollset implementation is reasonably threadsafe. This enables the MPM to avoid excessive high level locking, or having to wake up the listener thread in order to send it a keep-alive socket. This is currently only compatible with KQueue and EPoll.



 SSL과 연동되지 않는 다는 단점. 그리고, 어떻게 방향이 이끌어갈지는 모르겠으나..
일반적으로 그냥 apache 자체성능 관점에서는 기존의 아파치보다는 성능이 많이 좋다라는 테스트가 진행되었다..  (내가 직접 한 테스트가 아니라서 자세히 모름. )

'Web service' 카테고리의 다른 글

img 태그의 onerror 처리 관련  (0) 2010.02.11
Java script go back reload  (0) 2010.02.09
아파치 설정 - if/else then  (0) 2009.08.18
두 form을 한 줄로 보여주기  (0) 2009.07.15
[Java script] How to glue two forms  (0) 2009.06.23
Posted by '김용환'
,