{"id":357,"date":"2013-01-24T01:07:38","date_gmt":"2013-01-23T16:07:38","guid":{"rendered":"http:\/\/labo.samuraistyle.org\/blog\/?p=357"},"modified":"2016-10-22T18:57:07","modified_gmt":"2016-10-22T09:57:07","slug":"reverse-proxynginx-application-serverapache-prefork%e3%81%ae%e6%a7%8b%e6%88%90%e3%81%ab%e5%a4%89%e6%9b%b4","status":"publish","type":"post","link":"https:\/\/labo.samuraistyle.org\/blog\/archives\/357","title":{"rendered":"Reverse Proxy(nginx) + Application Server(apache prefork)\u306e\u69cb\u6210\u306b\u5909\u66f4"},"content":{"rendered":"<p>\u524d\u304b\u3089Reverse Proxy(apache worker) + Application Server(apache prefork)\u69cb\u6210\u306b\u3057\u305f\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u305a\u3063\u3068\u624b\u4ed8\u304b\u305a\u3060\u3063\u305f\u3002<br \/>\n\u5148\u65e5nginx\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u3068\u308b\u6a5f\u4f1a\u304c\u3042\u3063\u3066\u3001\u3053\u308c\u304c\u51c4\u304f\u65e9\u3044\u3002\u7c21\u5358\u306a\u306ahtml\u3067\u8f03\u3079\u308b\u3068<\/p>\n<ul>\n<li>apache prefork 1400 req\/sec<\/li>\n<li>apache worker 2000 req\/sec<\/li>\n<li>nginx 8000 req\/sec<\/li>\n<\/ul>\n<p>\u3050\u3089\u3044\u9055\u3046(\u8272\u3005\u52d5\u3044\u3066\u3044\u308bAtom 330\u74b0\u5883\u3067\u3068\u3063\u305f\u9069\u5f53\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3060\u3051\u3069)\u306e\u306b\u9a5a\u3044\u3066\u4f7f\u3063\u3066\u307f\u305f\u304f\u306a\u3063\u3066\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<p><!--more--><\/p>\n<p>Amazon Linux\u306e\u5834\u5408\u306f yum install nginx \u3060\u3051\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u3061\u3083\u3046\u306e\u3067\u3001\u524d\u304b\u3089\u52d5\u3044\u3066\u308bapache prefork\u3092\u5225\u306e\u30dd\u30fc\u30c8\u3067\u52d5\u3044\u3066\u3082\u3089\u3044\u3001nginx\u3092\u8d77\u52d5\u3002\u3042\u3068\u306f\u5148\u4eba\u306e\u77e5\u6075\u3092\u501f\u308a\u306a\u304c\u3089\u3067\u6570\u6642\u9593\u3067\u3067\u304d\u305f\u3002<\/p>\n<p><a href=\"http:\/\/bren.jp\/blog\/%E3%81%95%E3%81%8F%E3%82%89vps%EF%BC%9Anginx-apache-%E6%A7%8B%E6%88%90%E3%81%AE%E8%A8%AD%E5%AE%9A%E6%96%B9%E6%B3%95\/\" target=\"_blank\">WordPress Nginx proxy cache integrator \u3055\u304f\u3089VPS\uff1a\u3000Nginx + Apache \u69cb\u6210\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/a><br \/>\n<a href=\"http:\/\/dogmap.jp\/2011\/02\/08\/wordpress-nginx\/\" target=\"_blank\">WordPress \u30b5\u30a4\u30c8\u306b nginx \u3092\u5c0e\u5165\u3059\u308b<\/a><\/p>\n<p>\u4eca\u56de\u306f\u975e\u529b\u306a\u74b0\u5883(EC2 Micro)\u3067\u6700\u5927\u9650\u9811\u5f35\u308c\u308b\u3088\u3046\u306bReverse Proxy\u3067\u3042\u308b\u7a0b\u5ea6cache\u3055\u305b\u308b\u3088\u3046\u306b\u3057\u305f\u3002\u6e2c\u3063\u3066\u307f\u305f\u3089 3500 req\/sec \u51fa\u3066\u308b\u304b\u3089\u3001\u5358\u7d14\u8a08\u7b97\u3059\u308b\u306810,000,000 req\/h \u3092\u8d85\u3048\u308bw<\/p>\n<p>\u8efd\u304f\u30cf\u30de\u3063\u305f\u306e\u306fApache\u5074\u304cNameVirtualHost\u306a\u306e\u306bProxy\u3059\u308b\u6642\u306bHost\u30d8\u30c3\u30c0\u30fc\u3092\u3064\u3051\u3066\u306a\u304b\u3063\u305f\u3053\u3068\u3002\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u304b\u3089Reverse Proxy(apache worker) + Application Server(apache prefork)\u69cb\u6210\u306b\u3057\u305f\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u305a\u3063\u3068\u624b\u4ed8\u304b\u305a\u3060\u3063\u305f\u3002 \u5148\u65e5nginx\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u3068\u308b &hellip; <a href=\"https:\/\/labo.samuraistyle.org\/blog\/archives\/357\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Reverse Proxy(nginx) + Application Server(apache prefork)\u306e\u69cb\u6210\u306b\u5909\u66f4<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[29],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-tech","tag-nginx"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":6,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":942,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions\/942"}],"wp:attachment":[{"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labo.samuraistyle.org\/blog\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}