SlideShare a Scribd company logo
1 of 71
Download to read offline
cia
     rên l
Refe    asi
  no  Br
633.000.000
                pageviews



Julho/2012
             92.000.000
                 visitas



             21.000.000
                 uniques
WebServer   App Servers   File Servers
Intel Xeon 2ghz
             (quad core, 4mb cache L2)

            8gb de memória
             (ddr2 667mhz)

            145gb HD SCSI
WebServer
Intel Xeon 3ghz
               (dual core, 6mb cache L2)

              4gb de memória
               (ddr2 800mhz)

              250gb HD SCSI
App Servers
Intel Xeon 2.33ghz
                (octa core, 12mb cache L2)

               8gb de memória
                (ddr2 667mhz)


File Servers
               160gb HD SCSI
2.305 pontos   3.989 pontos
web server
+


app server
file server
+
replication
r                           r
             e rve                       e rve
        b   S                       p   S
     We                          Ap


master                 slave’s
Alexandre Bini
alexandre@clickjogos.com.br
@alexandrebini
html
imagens
desacoplar aplicação
evitar desperdício
deploy
22 pageviews/dia
 de
    milhões
GET /                       Balancer




                         r
                   e rve
              b   S
           We                                       rve
                                                        r
                                                 Se
                                             p
                                          Ap

response              cache /index.html
GET /




                    er
              S er v
            eb                         r
           W
                                 e rve
                            p   S
                         Ap

response
r
   Se rve
 eb
W

                          r
                   Se rve
                p
              Ap
Busca

    JSON

     agin a çã o
    P
             edirects
            R
Busca

   GET /busca/?q=clickcross
   301 /busca/clickcross/
dire cts
      re


<meta content=’0;url=/clicksinuca/’ http-equiv=‘refresh’/>
<script type=‘text/javascript’>
    window.location = ‘/clicksinuca/’
</script>
4gb          215k
      de html’s
janitor   crawler
janitor   crawler
janitor   crawler
22 pageviews/dia
 de
    milhões
html
imagens
desacoplar aplicação
evitar desperdício
deploy
location ~* ^.+.(jpg|jpeg|gif|png|ico|css|tgz|gz|js|swf)$
    expires modified +20d;
}
HTTP/1.1 200 OK
Expires: Wed, 29 Aug 2012 22:52:28 GMT
Cache-Control: max-age=864000
X-Varnish: 1519921732 1192092275
Age: 307204
Via: CacheUOL
Server: Proxy-Samba UOL
X-Cache: HIT
Intel Xeon 2.4ghz
 (quad core)

96gb de memória
m. br 72
uol.co          r 74
      . com. b           br 83
    ig                m.
         t err a.co           m 86
                     obl o.co              92
             g 1 . gl           com . br
                       kjog os.
                  clic
OptiPNG
PNGquant
-20%
GB/ mês)
 50   0 .000 i ma g
                   ens de 4 k
        ( de




$100.000,00 (amazon)
$20.000,00/mês
cache de html
cache de imagens
desacoplar aplicação
evitar desperdício
deploy
Sinatra
+
    Sinatra
cache de html
cache de imagens
desacoplar aplicação
evitar desperdício
deploy
5ms   1ms
location ~ ^/(categorias|categorias/mais-jogos|novidades)(|/pg-[0-9]+)/$ {
    include includes/default_cache.conf;
    include includes/send_to_balancer.conf;
}

location ~ ^/((downloads|jogos|barra)(|/.*))/$ {
    include includes/default_cache.conf;
    include includes/send_to_balancer.conf;
}

location ~ ^/(clicksinuca|shuffle|shuffle/pqe)/$ {
    include includes/no_cache.conf;
    include includes/send_to_balancer.conf;
}

location ~ ^/(livehome|thumbtest|dfptest)/$ {
    include includes/no_cache.conf;
    include includes/send_to_balancer.conf;
}
cache de html
cache de imagens
desacoplar aplicação
evitar desperdício
deploy
r
        e rve
   b   S
We                          rve
                                r
                         Se
                     p
                  Ap
GET /




                                  r
                            e rve
                       b   S
                    We                          rve
                                                    r
                                             Se
                                         p
                                      Ap

     response
cache /index.html
GET /shuffle/




                                  r
                            e rve
                       b   S
                    We                          rve
                                                    r
                                             Se
                                         p
                                      Ap

    response
/warmup-lock.html
GET /shuffle/                        GET /contato/




                                  r
                            e rve
                       b   S
                    We                                 rve
                                                           r
                                                    Se
                                                p
                                             Ap

    response                             response
/warmup-lock.html                         200 OK
GET /shuffle/                        GET /contato/




                                  r
                            e rve
                       b   S
                    We                                 rve
                                                           r
                                                    Se
                                                p
                                             Ap

    response                             response
/warmup-lock.html                         200 OK
GET /shuffle/                     Balancer




                              r
                        e rve
                   b   S
                We                                     rve
                                                           r
                                                    Se
                                                p
                                             Ap

  response
OptiPNG
PNGquant
Sinatra
U               |             t               r
        wed             top(          faul            ance                                     {
# Allo        ~  ^/((       de s/de        to  _bal                                  mi t)/$
      t ion         i nclu         s end_                                     g |sub
 loca        ude           u des/                                        o/ms
       incl          incl                                      cont
                                                                      at
                de                                           |
        i nclu                                        n tato         ;                                                 {
                                             i e|co         e. conf        ;                                     + )/$
                                   |a  nunc        _ cach         r. conf                                -[ 0-9]
   }
                          (a juda        ef ault        al ance                                  )( |/pg
                   ~ ^/          d es/d        _ to_b                                     d ades
           tion          i nclu          send                                    s| novi
     loca        lude          lude
                                     s/
                                                                            jogo
            inc             nc
                                                                   /mai
                                                                         s-
                    u de i                                       s
             incl                                          oria           ;
                                                  ca  teg        e. conf       ;
                                          r ias|         _ cach         . conf
        }                         a tego      ef  ault        la  ncer
                         ~  ^/(c        es/d        _t  o_ba
                                     ud
                tion          incl           send                                       {
          loca          ude           u des/                                      ))/$
                 incl       e  incl                                     a) (|/.
                                                                                *
                  in  clud                                    s|  barr       f;
                                                        jogo           .con        ;
                                             lo  ads|        _c  ache      r. conf
            }                          down          f ault          ance
                             ~  ^/((       de s/de        _t o_ba
                                                                   l

                oca   tion      e i  nclu          send                                  e)/$
                                                                                               {
              l              ud             d es/                                      q
                       incl         i nclu                                     ff le/p
                        inc lude                                      le  |shu
                                                              s huff        ;
                                                   s in uca|       e. conf     r .con
                                                                                      f;
                                                                 h
                  }
                                         (c lick        no _cac        al ance
                                  ~ ^/         u des/          _ to_b
C ache

    Ca che

         C ache
              Ca che
Alexandre Bini
alexandre@clickjogos.com.br
@alexandrebini

More Related Content

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

5 Servidores, 20 milhões de usuários, 80 milhões de visitas e 600 milhões de pageviews