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 (??????)
? ?????????, ???????? ??????.
|