Apache-Talk mailing list archive (apache-talk@lists.lexa.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [apache-talk] ÐÒÏÛÕ ÐÏÍÏ ÝÉ × performance tuning
Alex Petrov ?????:
>??????.
>
>????? ?????? ? performance tuning.
>
>???? ?????? ? ??????? ??????? ??????, ??????? ????????? ?? http ? ??????? nginx. ??????? ????Ÿ????? ?????? - 1000-1200. ?????????? ?????? - ????? 300. ????? output - 50-60Mbps.
>
>???? ??Ÿ????: ??????? output ?? ?????????, ?? ???? ?? ~100Mbps.
>
>?? ???????, Ÿ?? ??????? 50-60 ?? ??????, ?????? Ÿ??, ??-??????, ??? ????? ?? ??????? ?? ??????? ?????, ??-??????, ???? ????? ????????? ??? ???? ????? ?? ?????? ? round-robin, ?? ???? ??????????? ?? 60Mbps ??????Ÿ???? ?????????.
>
>???????? ? ???, Ÿ?? ? ??? ???Ÿ????? ??????? :) ????? ???-?? ??????????????? ?????????? 40 ??????? ?? ???????????? ???????? ??? ?????Ÿ???? ?????? output.
>
>??????? - linux debian 3.1, kernel 2.6.8, P4 1.8Ghz, 1G RAM, 2x250 SATA.
>
>??? ??? ???? ???????:
>
>1. ????? (SATA) ?????????? ? software raid0;
>2. ?????Ÿ??? output buffers, ????Ÿ??? bic tcp, sack;
>3. ? nginx ???????????? epoll() ? sendfile().
>
>???? ?? top ? vmstat, ??????? ???????? 80% ??????? ? ???????? ?????????? Ÿ????? ? ??????, ?? ??? ????, Ÿ?? ??? ????? ??????? ? ?????? ??????????? ???????? ??????????.
>
>??? ?? ?? ??????? ? ???? ????????? ??????????? Ÿ???-??????, ??????????.
>
>????, ??????? ???????? ???Ÿ?? ?????????? ??????? - ??????Ÿ??? ????Ÿ????? ????????????? ??????, Ÿ???? ??????? ?? ????????? ?? 50 ?????? ????????? ?????? ?????, Ÿ??, ?? ?????????, ?????? ?????? ?????. ??????, ??? ?????? nginx output ???Ÿ??? ????????? ?? 100Mbps, Ÿ???? ????? ?????? ?????????? ?? ???Ÿ??? ???Ÿ????.
>
>????, ??????? ?? ??? ????????:
>
>1. ???????? ?? ?????????? kernel;
>2. ???????? software raid ?? hardware raid;
>3. ??????? ?????? ? ???????.
>
>??????, ????? ???? ??????????? raid-?????????? ??? SATA, ??????? ???????? ??? 2.6.x?
>
>
3ware, ?? ????? ????? ??? ???? ?? ????? ???Ÿ??? ????????? ??? IDE ???
SATA ??????, ?????????? SCSI ??? ???????, ? ??????? ???????. ???? ? ???,
Ÿ?? ???Ÿ?? ?????? ? 1000 ???????, ? ????? ?? 100 ??????? ??????? ??
?????? ??????? ???????? ????????? Ÿ?????, Ÿ?? ????? ????????????
??????????? ?????????? ? ???????????? IDE ? SATA, ?? ??? ????????
??????? ???????? ???????, ? ? ?????? ???Ÿ?? ????Ÿ? - ????????? ??? ?????.
???????? ??????? ???????? ?????:
????????? nginx ?Ÿ??????? ???????? ??????? ?????????? ?? ???, ?
???Ÿ?? ?????????????????????? ????????? ???????? ??????? ?????
?Ÿ????????? ???????????? ??????? ???? ????? ? 1 ????????, ??? ????????
Ÿ???? ???????? ???????Ÿ???? ????? Ÿ?????? ??????, ?? ?????? ? ???????,
?? ?????? ?????Ÿ???? ?????????????? ??????.
??????? 2 - ?????????????? ???????? ???????, ?.?. ?????Ÿ??? Ÿ????
??????, ?????? ???? ??????, ?????? ? ?.?. ??? ?????? ??????????? ????
????? ???????? ?????????? ? ???????, ?????????? ?? ???? ?????, JBOD ???
RAID.
??????? 3 - ???????????? ???????? ??????? ? ????? ???????? ???????, ??
??????????? ?????(???? ?????? ??????????), ?? ???? ?? SATA ?? 10 000
????????.
--
???./????: +7 (812) 323-23-23 (?????-?????????)
???./????: +7 (095) 737-09-77 (??????)
? ?????????, ???????? ??????.
|