SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
TCP socket backlog


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü
                Î÷åðåäü íà ñîêåòå

                                                          1K -> 20K rpm
wargaming.net


                      Ïàäàåò êëàñòåð - âñå èäóò íà ñàéò:

                      Èíâàëèäàöèÿ êýøà - âñå æäóò:     20K -> 1K rpm
                Ðåøåíèå:

                net.core.somaxconn = 32768
                net.core.netdev_max_backlog = 32768
                net.ipv4.tcp_max_syn_backlog = 32768


                ÍÅ    UNIX ñîêåò (ECONNREFUSED)


                502 Bad Gateway
conntrack


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü
wargaming.net
                net.ipv4.netfilter.ip_conntrack_max = 294912
                net.ipv4.netfilter.ip_conntrack_count = 294118


                Ïåðåïîëíåíèå:

                [8727241.821130]   ip_conntrack:   table   full,   dropping   packet.
                [8727243.790372]   ip_conntrack:   table   full,   dropping   packet.
                [8727248.908501]   ip_conntrack:   table   full,   dropping   packet.
                [8727253.859720]   ip_conntrack:   table   full,   dropping   packet.
                [8727258.846404]   ip_conntrack:   table   full,   dropping   packet.
                [8727264.276727]   ip_conntrack:   table   full,   dropping   packet.


                Áîëüøîé conntrack (over 300K):                            97.5%si
                Ðåøåíèå: dport 80 -> NOTRACK
TIME_WAIT


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü
                      frontend äëÿ îáùåíèÿ ñ âíåøíèì ìèðîì
wargaming.net

                      áûñòðûé backend (1..10ms)

                      frontend <-> backend HTTP/1.0 (conn per req)

                $ netstat -napt | awk '{print $6}' | sort | uniq -c
                   ...
                   63564 TIME_WAIT

                Íåõâàòêà èñõîäÿùèõ ïîðòîâ!

                Ðåøåíèå:

                net.ipv4.ip_local_port_range = 2000    61000
                net.ipv4.tcp_max_tw_buckets = 131072
                net.ipv4.tcp_tw_recycle = 0
                net.ipv4.tcp_tw_reuse = 1
Out Of TCP Mem


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü
                3494-[9404385.020387] TCP: too many of orphaned sockets
wargaming.net
                3496:[9404390.463850] Out of socket memory


                Äèàãíîñòèêà:

                $ cat /proc/net/sockstat
                sockets: used 7385
                TCP: inuse 5236 orphan 98 tw 2696 alloc 7126 mem 25421
                UDP: inuse 10 mem 0
                RAW: inuse 0
                FRAG: inuse 0 memory 0

                $ /sbin/sysctl -a | grep tcp_mem
                net.ipv4.tcp_mem = 196608 262144 393216

                $ /sbin/sysctl -a | grep orphans
                net.ipv4.tcp_max_orphans = 131072
memcached


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü
wargaming.net
                    ïëîõî ìàñøòàáèðóåòñÿ thread-àìè (-t 64 çëî)

                    8192 pthread mutex íà âñå êëþ÷è,

                    -t 6 - OK! (íå áîëüøå)

                    Nthreads == Ncpu




                Ìàñøòàáèðîâàòü ïðîöåññàìè!
                Êîíñèñòåíòíîå êîëüöî êåøèðîâàíèÿ - íåñêîëüêî èíñòàíñîâ
nscd (bonus)


 5 ïðîáëåì
    ïðè


Àëåêñàíäð
 Êîëåñåíü       Êýøèðîâàíèå îòâåòîâ DNS
wargaming.net




                nscd must have!

Mais conteúdo relacionado

Mais procurados

Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4uzzzle
 
MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)MongoSF
 
Triangle OpenStack meetup 09 2013
Triangle OpenStack meetup 09 2013Triangle OpenStack meetup 09 2013
Triangle OpenStack meetup 09 2013Dan Radez
 
wordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jailwordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jailJongseok Choi
 
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложенийПрактический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложенийOlga Lavrentieva
 
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Saroj Sahu
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newYiwei Ma
 
agri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertoragri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertorToshiaki Baba
 
Linux Server Start
Linux Server StartLinux Server Start
Linux Server StartGavin Quan
 
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?nine
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging RubyAman Gupta
 
Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7Technopark
 
Debugging Ruby Systems
Debugging Ruby SystemsDebugging Ruby Systems
Debugging Ruby SystemsEngine Yard
 

Mais procurados (20)

Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4Installation of application server 10g in red hat 4
Installation of application server 10g in red hat 4
 
MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)MongoDB Replication (Dwight Merriman)
MongoDB Replication (Dwight Merriman)
 
Triangle OpenStack meetup 09 2013
Triangle OpenStack meetup 09 2013Triangle OpenStack meetup 09 2013
Triangle OpenStack meetup 09 2013
 
mod_perl 2.0 For Speed Freaks!
mod_perl 2.0 For Speed Freaks!mod_perl 2.0 For Speed Freaks!
mod_perl 2.0 For Speed Freaks!
 
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp KrennJavantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
Javantura v2 - Replication with MongoDB - what could go wrong... - Philipp Krenn
 
Log
LogLog
Log
 
wordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jailwordpress with nginx on virtualization, jail
wordpress with nginx on virtualization, jail
 
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложенийПрактический опыт профайлинга и оптимизации производительности Ruby-приложений
Практический опыт профайлинга и оптимизации производительности Ruby-приложений
 
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
Uable to do ssh from the RedHat Linux machine to Netapp filer 7 mode storage ...
 
X64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 newX64服务器 lnmp服务器部署标准 new
X64服务器 lnmp服务器部署标准 new
 
Bsides final
Bsides finalBsides final
Bsides final
 
XS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation JapaneseXS Japan 2008 Isolation Japanese
XS Japan 2008 Isolation Japanese
 
Ruby Postgres
Ruby PostgresRuby Postgres
Ruby Postgres
 
agri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertoragri inventory - nouka data collector / yaoya data convertor
agri inventory - nouka data collector / yaoya data convertor
 
Linux Server Start
Linux Server StartLinux Server Start
Linux Server Start
 
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?
TechTalkThursday 29.06.2017: Wie verhält sich DDoS in der Realität?
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
 
Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7Безопасность интернет-приложений осень 2013 лекция 7
Безопасность интернет-приложений осень 2013 лекция 7
 
Osol Pgsql
Osol PgsqlOsol Pgsql
Osol Pgsql
 
Debugging Ruby Systems
Debugging Ruby SystemsDebugging Ruby Systems
Debugging Ruby Systems
 

Destaque

Interpol bringing the united states to justice (lithuanian)
Interpol   bringing the united states to justice (lithuanian)Interpol   bringing the united states to justice (lithuanian)
Interpol bringing the united states to justice (lithuanian)VogelDenise
 
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)VogelDenise
 
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)VogelDenise
 
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...VogelDenise
 
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)VogelDenise
 
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentation
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentationDMA Behavioural marketing -marketing with intent -antonia edmunds - presentation
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentationDMA Email Marketing Council
 
Nuremberg crimes against humanity-peace (finnish)
Nuremberg   crimes against humanity-peace (finnish)Nuremberg   crimes against humanity-peace (finnish)
Nuremberg crimes against humanity-peace (finnish)VogelDenise
 
Idealware - Technology Resources for Nonprofits 012413
Idealware - Technology Resources for Nonprofits 012413Idealware - Technology Resources for Nonprofits 012413
Idealware - Technology Resources for Nonprofits 012413Community IT Innovators
 
Nuremberg crimes against humanity-peace (gujarati)
Nuremberg   crimes against humanity-peace (gujarati)Nuremberg   crimes against humanity-peace (gujarati)
Nuremberg crimes against humanity-peace (gujarati)VogelDenise
 
Sexualabuseagenciessummary
SexualabuseagenciessummarySexualabuseagenciessummary
Sexualabuseagenciessummarykajani1991
 
Interpol bringing the united states to justice (danish)
Interpol   bringing the united states to justice (danish)Interpol   bringing the united states to justice (danish)
Interpol bringing the united states to justice (danish)VogelDenise
 
050113 fax to judy clarke (boston marathon bombing) - belarusian
050113   fax to judy clarke (boston marathon bombing) - belarusian050113   fax to judy clarke (boston marathon bombing) - belarusian
050113 fax to judy clarke (boston marathon bombing) - belarusianVogelDenise
 
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRYVogelDenise
 
Nuremberg principle dutch
Nuremberg principle   dutchNuremberg principle   dutch
Nuremberg principle dutchVogelDenise
 
Nuremberg principle lithuanian
Nuremberg principle   lithuanianNuremberg principle   lithuanian
Nuremberg principle lithuanianVogelDenise
 
Interpol bringing the united states to justice (persian)
Interpol   bringing the united states to justice (persian)Interpol   bringing the united states to justice (persian)
Interpol bringing the united states to justice (persian)VogelDenise
 
Interpol bringing the united states to justice (chinese – simplified)
Interpol   bringing the united states to justice (chinese – simplified)Interpol   bringing the united states to justice (chinese – simplified)
Interpol bringing the united states to justice (chinese – simplified)VogelDenise
 
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRYVogelDenise
 

Destaque (20)

Interpol bringing the united states to justice (lithuanian)
Interpol   bringing the united states to justice (lithuanian)Interpol   bringing the united states to justice (lithuanian)
Interpol bringing the united states to justice (lithuanian)
 
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)
052215 - FAX TO DELNER THOMAS & BENNIE THOMPSON (Dutch)
 
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Korean)
 
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...
032515 - FAX CONFIRMATION TO BENNIE THOMPSON - EEOC WILMA JONES SCOTT - EEOC ...
 
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)
BARACK OBAMA- UNDERSTANDING WILLIE LYNCH (Russian)
 
Cts
CtsCts
Cts
 
Keramahtamahan
KeramahtamahanKeramahtamahan
Keramahtamahan
 
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentation
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentationDMA Behavioural marketing -marketing with intent -antonia edmunds - presentation
DMA Behavioural marketing -marketing with intent -antonia edmunds - presentation
 
Nuremberg crimes against humanity-peace (finnish)
Nuremberg   crimes against humanity-peace (finnish)Nuremberg   crimes against humanity-peace (finnish)
Nuremberg crimes against humanity-peace (finnish)
 
Idealware - Technology Resources for Nonprofits 012413
Idealware - Technology Resources for Nonprofits 012413Idealware - Technology Resources for Nonprofits 012413
Idealware - Technology Resources for Nonprofits 012413
 
Nuremberg crimes against humanity-peace (gujarati)
Nuremberg   crimes against humanity-peace (gujarati)Nuremberg   crimes against humanity-peace (gujarati)
Nuremberg crimes against humanity-peace (gujarati)
 
Sexualabuseagenciessummary
SexualabuseagenciessummarySexualabuseagenciessummary
Sexualabuseagenciessummary
 
Interpol bringing the united states to justice (danish)
Interpol   bringing the united states to justice (danish)Interpol   bringing the united states to justice (danish)
Interpol bringing the united states to justice (danish)
 
050113 fax to judy clarke (boston marathon bombing) - belarusian
050113   fax to judy clarke (boston marathon bombing) - belarusian050113   fax to judy clarke (boston marathon bombing) - belarusian
050113 fax to judy clarke (boston marathon bombing) - belarusian
 
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL MFSOE ENTRY
 
Nuremberg principle dutch
Nuremberg principle   dutchNuremberg principle   dutch
Nuremberg principle dutch
 
Nuremberg principle lithuanian
Nuremberg principle   lithuanianNuremberg principle   lithuanian
Nuremberg principle lithuanian
 
Interpol bringing the united states to justice (persian)
Interpol   bringing the united states to justice (persian)Interpol   bringing the united states to justice (persian)
Interpol bringing the united states to justice (persian)
 
Interpol bringing the united states to justice (chinese – simplified)
Interpol   bringing the united states to justice (chinese – simplified)Interpol   bringing the united states to justice (chinese – simplified)
Interpol bringing the united states to justice (chinese – simplified)
 
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY
09/03/14 - LACK OF JURISDICTION - RESPONSE TO 08/12/14 JUDGE RUSSELL ENTRY
 

Semelhante a 5 issues

Reverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemReverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemCyber Security Alliance
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemSneha Inguva
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPFIvan Babrou
 
Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Ontico
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)Amazon Web Services
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet CountAmazon Web Services
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_partlilliput12
 
Velocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attackVelocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attackCosimo Streppone
 
Kernelvm 201312-dlmopen
Kernelvm 201312-dlmopenKernelvm 201312-dlmopen
Kernelvm 201312-dlmopenHajime Tazaki
 
Real-time in the real world: DIRT in production
Real-time in the real world: DIRT in productionReal-time in the real world: DIRT in production
Real-time in the real world: DIRT in productionbcantrill
 
YOW2020 Linux Systems Performance
YOW2020 Linux Systems PerformanceYOW2020 Linux Systems Performance
YOW2020 Linux Systems PerformanceBrendan Gregg
 
Advanced RAC troubleshooting: Network
Advanced RAC troubleshooting: NetworkAdvanced RAC troubleshooting: Network
Advanced RAC troubleshooting: NetworkRiyaj Shamsudeen
 
Ipv6 test plan for opnfv poc v2.2 spirent-vctlab
Ipv6 test plan for opnfv poc v2.2 spirent-vctlabIpv6 test plan for opnfv poc v2.2 spirent-vctlab
Ipv6 test plan for opnfv poc v2.2 spirent-vctlabIben Rodriguez
 
QCon 2015 Broken Performance Tools
QCon 2015 Broken Performance ToolsQCon 2015 Broken Performance Tools
QCon 2015 Broken Performance ToolsBrendan Gregg
 
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018DevOpsDays Tel Aviv
 
Disruptive IP Networking with Intel DPDK on Linux
Disruptive IP Networking with Intel DPDK on LinuxDisruptive IP Networking with Intel DPDK on Linux
Disruptive IP Networking with Intel DPDK on LinuxNaoto MATSUMOTO
 
DDoS: Practical Survival Guide
DDoS: Practical Survival GuideDDoS: Practical Survival Guide
DDoS: Practical Survival GuideHLL
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OpenvSwitch
 

Semelhante a 5 issues (20)

T.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - PreyT.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - Prey
 
Reverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande ModemReverse engineering Swisscom's Centro Grande Modem
Reverse engineering Swisscom's Centro Grande Modem
 
Handy Networking Tools and How to Use Them
Handy Networking Tools and How to Use ThemHandy Networking Tools and How to Use Them
Handy Networking Tools and How to Use Them
 
Debugging linux issues with eBPF
Debugging linux issues with eBPFDebugging linux issues with eBPF
Debugging linux issues with eBPF
 
Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)Performance tweaks and tools for Linux (Joe Damato)
Performance tweaks and tools for Linux (Joe Damato)
 
AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)AWS re:Invent 2016: Making Every Packet Count (NET404)
AWS re:Invent 2016: Making Every Packet Count (NET404)
 
(NET404) Making Every Packet Count
(NET404) Making Every Packet Count(NET404) Making Every Packet Count
(NET404) Making Every Packet Count
 
Open stack advanced_part
Open stack advanced_partOpen stack advanced_part
Open stack advanced_part
 
Velocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attackVelocity 2011 - Our first DDoS attack
Velocity 2011 - Our first DDoS attack
 
Kernelvm 201312-dlmopen
Kernelvm 201312-dlmopenKernelvm 201312-dlmopen
Kernelvm 201312-dlmopen
 
Real-time in the real world: DIRT in production
Real-time in the real world: DIRT in productionReal-time in the real world: DIRT in production
Real-time in the real world: DIRT in production
 
YOW2020 Linux Systems Performance
YOW2020 Linux Systems PerformanceYOW2020 Linux Systems Performance
YOW2020 Linux Systems Performance
 
Advanced RAC troubleshooting: Network
Advanced RAC troubleshooting: NetworkAdvanced RAC troubleshooting: Network
Advanced RAC troubleshooting: Network
 
Linux networking
Linux networkingLinux networking
Linux networking
 
Ipv6 test plan for opnfv poc v2.2 spirent-vctlab
Ipv6 test plan for opnfv poc v2.2 spirent-vctlabIpv6 test plan for opnfv poc v2.2 spirent-vctlab
Ipv6 test plan for opnfv poc v2.2 spirent-vctlab
 
QCon 2015 Broken Performance Tools
QCon 2015 Broken Performance ToolsQCon 2015 Broken Performance Tools
QCon 2015 Broken Performance Tools
 
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
Pcapy and dpkt - tcpdump on steroids - Ran Leibman - DevOpsDays Tel Aviv 2018
 
Disruptive IP Networking with Intel DPDK on Linux
Disruptive IP Networking with Intel DPDK on LinuxDisruptive IP Networking with Intel DPDK on Linux
Disruptive IP Networking with Intel DPDK on Linux
 
DDoS: Practical Survival Guide
DDoS: Practical Survival GuideDDoS: Practical Survival Guide
DDoS: Practical Survival Guide
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
 

Último

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

5 issues

  • 1. TCP socket backlog 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü Î÷åðåäü íà ñîêåòå 1K -> 20K rpm wargaming.net Ïàäàåò êëàñòåð - âñå èäóò íà ñàéò: Èíâàëèäàöèÿ êýøà - âñå æäóò: 20K -> 1K rpm Ðåøåíèå: net.core.somaxconn = 32768 net.core.netdev_max_backlog = 32768 net.ipv4.tcp_max_syn_backlog = 32768 ÍÅ UNIX ñîêåò (ECONNREFUSED) 502 Bad Gateway
  • 2. conntrack 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü wargaming.net net.ipv4.netfilter.ip_conntrack_max = 294912 net.ipv4.netfilter.ip_conntrack_count = 294118 Ïåðåïîëíåíèå: [8727241.821130] ip_conntrack: table full, dropping packet. [8727243.790372] ip_conntrack: table full, dropping packet. [8727248.908501] ip_conntrack: table full, dropping packet. [8727253.859720] ip_conntrack: table full, dropping packet. [8727258.846404] ip_conntrack: table full, dropping packet. [8727264.276727] ip_conntrack: table full, dropping packet. Áîëüøîé conntrack (over 300K): 97.5%si Ðåøåíèå: dport 80 -> NOTRACK
  • 3. TIME_WAIT 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü frontend äëÿ îáùåíèÿ ñ âíåøíèì ìèðîì wargaming.net áûñòðûé backend (1..10ms) frontend <-> backend HTTP/1.0 (conn per req) $ netstat -napt | awk '{print $6}' | sort | uniq -c ... 63564 TIME_WAIT Íåõâàòêà èñõîäÿùèõ ïîðòîâ! Ðåøåíèå: net.ipv4.ip_local_port_range = 2000 61000 net.ipv4.tcp_max_tw_buckets = 131072 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_tw_reuse = 1
  • 4. Out Of TCP Mem 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü 3494-[9404385.020387] TCP: too many of orphaned sockets wargaming.net 3496:[9404390.463850] Out of socket memory Äèàãíîñòèêà: $ cat /proc/net/sockstat sockets: used 7385 TCP: inuse 5236 orphan 98 tw 2696 alloc 7126 mem 25421 UDP: inuse 10 mem 0 RAW: inuse 0 FRAG: inuse 0 memory 0 $ /sbin/sysctl -a | grep tcp_mem net.ipv4.tcp_mem = 196608 262144 393216 $ /sbin/sysctl -a | grep orphans net.ipv4.tcp_max_orphans = 131072
  • 5. memcached 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü wargaming.net ïëîõî ìàñøòàáèðóåòñÿ thread-àìè (-t 64 çëî) 8192 pthread mutex íà âñå êëþ÷è, -t 6 - OK! (íå áîëüøå) Nthreads == Ncpu Ìàñøòàáèðîâàòü ïðîöåññàìè! Êîíñèñòåíòíîå êîëüöî êåøèðîâàíèÿ - íåñêîëüêî èíñòàíñîâ
  • 6. nscd (bonus) 5 ïðîáëåì ïðè Àëåêñàíäð Êîëåñåíü Êýøèðîâàíèå îòâåòîâ DNS wargaming.net nscd must have!