SlideShare a Scribd company logo
1 of 11
Download to read offline
Pound & Varnish
Balanceamento de Carga & Acelerador HTTP




                                           1
Pound
●   O que é o Pound
    –   Proxy Reverso
    –   Balanceador de Carga
    –   Front-End HTTPS para Servidores Web
    –   Licença GPL
●   O que não é o Pound
    –   Servidor Web
    –   Acelerador Web

                                              2
Instalando o Pound no Debian Etch

●   Instalação Simplificada:
    –   # aptitude install pound
●   Arquivo de Configuração
    –   /etc/pound/pound.cfg
    –   /etc/default/pound
         ●   startup=1




                                   3
pound.cfg
## Logging: (goes to syslog by default)
##      0       no logging
##      1       normal
##      2       extended
##      3       Apache-style (common log format)
LogLevel        1

## check backend every X secs:
Alive           30

ListenHTTP
        Address www.site.com
        Port    80

       Service
                 BackEnd
                           Address zope1.site.com
                           Port    8080
                 End

                 BackEnd
                           Address zope2.site.com
                           Port    8080
                 End
       End
End
                                                    4
Virtual Host no Zope




                       5
Varnish
●   É um acelerador HTTP somente
●   Melhor Configuração
●   Melhor Gerenciamento
●   Rápido
●   Características de Gerenciador de
    Conteúdo
●   Licença BSD

                                        6
Instalando o Varnish no Debian Etch

●   Instalação Simplificada:
    –   # aptitude install varnish
●   Arquivo de Configuração:
    –   /etc/varnish/vcl.conf




                                      7
vcl.conf
●   https://dl324b-1.cmb.usc.edu/projects/hapmap/browser/variation/trunk/web_interface/optilux-code-2007-10-21/extra


     –   plone-varnish-1.0.vcl
     –   plone.vcl




                                                                                                               8
Quem usa Varnish?
connect: (www.plone.org, 80)
send: 'GET / HTTP/1.0rnHost: www.plone.orgrnUser-agent: Python-urllib/1.16r
nrn'
reply: 'HTTP/1.1 302 Moved Temporarilyrn'
header: Server: nginx/0.5.26
header: Date: Mon, 15 Sep 2008 01:57:42 GMT
header: Content-Type: text/html
header: Content-Length: 161
header: Connection: close
header: Location: http://plone.org/
connect: (plone.org, 80)
(...)
header: Expires: Fri, 18 Sep 1998 01:56:49 GMT
header: Vary: Accept-Encoding
header: Last-Modified: Sun, 04 Dec 2005 12:13:31 GMT
header: X-Cache-Rules-Applied: yes
header: X-Caching-Rule-Id: frontpage
header: Cache-Control: max-age=0, s-maxage=3600, must-revalidate
header: X-Header-Set-Id: cache-in-proxy-1-hour
header: Content-Length: 46357
header: X-Varnish: 1899243585 1899243396
header: Age: 54
header: Via: 1.1 varnish

                                                                                   9
Informações
●   http://www.apsis.ch/pound/
●   http://varnish.projects.linpro.no/




                                         10
Palestrante

     Rogerio Ferreira, trabalha
     na   4Linux  como    Consultor
     responsável     por      Infra
     Estrutura e Projetos de Zope
     e Plone. Possui Certificação
     LPIC-1, LPIC-2 e LPIC-3. É
     autor de Projeto de Software
     Livre em Governo Estadual,
     participou  de    Projeto   de
     Zope/Plone     no      Governo
     Federal.




                                 11

More Related Content

What's hot

Integration with hdfs using WebDFS and NFS
Integration with hdfs using WebDFS and NFSIntegration with hdfs using WebDFS and NFS
Integration with hdfs using WebDFS and NFS
Christophe Marchal
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
mikehie
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
Ahmed Mekkawy
 

What's hot (19)

WebSockets with PHP: Mission impossible
WebSockets with PHP: Mission impossibleWebSockets with PHP: Mission impossible
WebSockets with PHP: Mission impossible
 
Integration with hdfs using WebDFS and NFS
Integration with hdfs using WebDFS and NFSIntegration with hdfs using WebDFS and NFS
Integration with hdfs using WebDFS and NFS
 
Lamp configuration u buntu 10.04
Lamp configuration   u buntu 10.04Lamp configuration   u buntu 10.04
Lamp configuration u buntu 10.04
 
WebHDFS at King - May 2014 Hadoop MeetUp
WebHDFS at King - May 2014 Hadoop MeetUpWebHDFS at King - May 2014 Hadoop MeetUp
WebHDFS at King - May 2014 Hadoop MeetUp
 
tit
tittit
tit
 
Apache Httpd and TLS certificates validations
Apache Httpd and TLS certificates validationsApache Httpd and TLS certificates validations
Apache Httpd and TLS certificates validations
 
Networking in Gnu/Linux
Networking in Gnu/LinuxNetworking in Gnu/Linux
Networking in Gnu/Linux
 
Dns centos
Dns centosDns centos
Dns centos
 
sshuttle VPN (2011-04)
sshuttle VPN (2011-04)sshuttle VPN (2011-04)
sshuttle VPN (2011-04)
 
!!! Huong dan !!!
!!! Huong dan !!!!!! Huong dan !!!
!!! Huong dan !!!
 
Nginx
NginxNginx
Nginx
 
OpenVPN
OpenVPNOpenVPN
OpenVPN
 
Nat
NatNat
Nat
 
skipfish
skipfishskipfish
skipfish
 
re7jweiss
re7jweissre7jweiss
re7jweiss
 
PHP Project development with Vagrant
PHP Project development with VagrantPHP Project development with Vagrant
PHP Project development with Vagrant
 
Unidade3 roteiro proxy
Unidade3 roteiro proxyUnidade3 roteiro proxy
Unidade3 roteiro proxy
 
Modul quick debserver
Modul quick debserverModul quick debserver
Modul quick debserver
 
Install ovs on local pc
Install ovs on local pcInstall ovs on local pc
Install ovs on local pc
 

Viewers also liked (9)

Reseña+nú..
Reseña+nú..Reseña+nú..
Reseña+nú..
 
Quirino hernandez adan eduardo
Quirino hernandez adan eduardoQuirino hernandez adan eduardo
Quirino hernandez adan eduardo
 
Reseña presentacion oral
Reseña presentacion oralReseña presentacion oral
Reseña presentacion oral
 
Teoría General de Sistemas
Teoría General de SistemasTeoría General de Sistemas
Teoría General de Sistemas
 
Esquema tema 8
Esquema tema 8Esquema tema 8
Esquema tema 8
 
Scan0007
Scan0007Scan0007
Scan0007
 
Publizitatearen Historia 1
Publizitatearen Historia 1Publizitatearen Historia 1
Publizitatearen Historia 1
 
Corferias feria gastronomia
Corferias feria gastronomiaCorferias feria gastronomia
Corferias feria gastronomia
 
Corferias alimentec
Corferias alimentecCorferias alimentec
Corferias alimentec
 

Similar to Pound Varnish

Fluentd and PHP
Fluentd and PHPFluentd and PHP
Fluentd and PHP
chobi e
 
Scalable Architecture 101
Scalable Architecture 101Scalable Architecture 101
Scalable Architecture 101
ConFoo
 

Similar to Pound Varnish (20)

HAProxy scale out using open source
HAProxy scale out using open sourceHAProxy scale out using open source
HAProxy scale out using open source
 
Deploy your own P2P network
Deploy your own P2P networkDeploy your own P2P network
Deploy your own P2P network
 
Devoxx Maroc 2015 HTTP 1, HTTP 2 and folks
Devoxx Maroc  2015 HTTP 1, HTTP 2 and folksDevoxx Maroc  2015 HTTP 1, HTTP 2 and folks
Devoxx Maroc 2015 HTTP 1, HTTP 2 and folks
 
FreeBSD, ipfw and OpenVPN 2.1 server
FreeBSD, ipfw and OpenVPN 2.1 serverFreeBSD, ipfw and OpenVPN 2.1 server
FreeBSD, ipfw and OpenVPN 2.1 server
 
Alfresco Security Best Practices 2012
Alfresco Security Best Practices 2012Alfresco Security Best Practices 2012
Alfresco Security Best Practices 2012
 
Raspberry Pi + ROS
Raspberry Pi + ROSRaspberry Pi + ROS
Raspberry Pi + ROS
 
Fluentd and PHP
Fluentd and PHPFluentd and PHP
Fluentd and PHP
 
Scalable Architecture 101
Scalable Architecture 101Scalable Architecture 101
Scalable Architecture 101
 
Prepare for PHP Test Fest 2009
Prepare for PHP Test Fest 2009Prepare for PHP Test Fest 2009
Prepare for PHP Test Fest 2009
 
Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!Apache and PHP: Why httpd.conf is your new BFF!
Apache and PHP: Why httpd.conf is your new BFF!
 
H2O - the optimized HTTP server
H2O - the optimized HTTP serverH2O - the optimized HTTP server
H2O - the optimized HTTP server
 
Node.js in production
Node.js in productionNode.js in production
Node.js in production
 
03_clere-HTTP2 HTTP3 the State of the Art in Our Servers.pdf
03_clere-HTTP2 HTTP3 the State of the Art in Our Servers.pdf03_clere-HTTP2 HTTP3 the State of the Art in Our Servers.pdf
03_clere-HTTP2 HTTP3 the State of the Art in Our Servers.pdf
 
Owasp AppSecEU 2015 - BeEF Session
Owasp AppSecEU 2015 - BeEF SessionOwasp AppSecEU 2015 - BeEF Session
Owasp AppSecEU 2015 - BeEF Session
 
Composer - Package Management for PHP. Silver Bullet?
Composer - Package Management for PHP. Silver Bullet?Composer - Package Management for PHP. Silver Bullet?
Composer - Package Management for PHP. Silver Bullet?
 
HTTP2 and gRPC
HTTP2 and gRPCHTTP2 and gRPC
HTTP2 and gRPC
 
Http Status Report
Http Status ReportHttp Status Report
Http Status Report
 
IPv6 for Pentesters
IPv6 for PentestersIPv6 for Pentesters
IPv6 for Pentesters
 
IPv6 for Pentesters
IPv6 for PentestersIPv6 for Pentesters
IPv6 for Pentesters
 
Internet Archive Video Presentation
Internet Archive Video Presentation Internet Archive Video Presentation
Internet Archive Video Presentation
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

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
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
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
 
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
 
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)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
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...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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 Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Pound Varnish

  • 1. Pound & Varnish Balanceamento de Carga & Acelerador HTTP 1
  • 2. Pound ● O que é o Pound – Proxy Reverso – Balanceador de Carga – Front-End HTTPS para Servidores Web – Licença GPL ● O que não é o Pound – Servidor Web – Acelerador Web 2
  • 3. Instalando o Pound no Debian Etch ● Instalação Simplificada: – # aptitude install pound ● Arquivo de Configuração – /etc/pound/pound.cfg – /etc/default/pound ● startup=1 3
  • 4. pound.cfg ## Logging: (goes to syslog by default) ## 0 no logging ## 1 normal ## 2 extended ## 3 Apache-style (common log format) LogLevel 1 ## check backend every X secs: Alive 30 ListenHTTP Address www.site.com Port 80 Service BackEnd Address zope1.site.com Port 8080 End BackEnd Address zope2.site.com Port 8080 End End End 4
  • 6. Varnish ● É um acelerador HTTP somente ● Melhor Configuração ● Melhor Gerenciamento ● Rápido ● Características de Gerenciador de Conteúdo ● Licença BSD 6
  • 7. Instalando o Varnish no Debian Etch ● Instalação Simplificada: – # aptitude install varnish ● Arquivo de Configuração: – /etc/varnish/vcl.conf 7
  • 8. vcl.conf ● https://dl324b-1.cmb.usc.edu/projects/hapmap/browser/variation/trunk/web_interface/optilux-code-2007-10-21/extra – plone-varnish-1.0.vcl – plone.vcl 8
  • 9. Quem usa Varnish? connect: (www.plone.org, 80) send: 'GET / HTTP/1.0rnHost: www.plone.orgrnUser-agent: Python-urllib/1.16r nrn' reply: 'HTTP/1.1 302 Moved Temporarilyrn' header: Server: nginx/0.5.26 header: Date: Mon, 15 Sep 2008 01:57:42 GMT header: Content-Type: text/html header: Content-Length: 161 header: Connection: close header: Location: http://plone.org/ connect: (plone.org, 80) (...) header: Expires: Fri, 18 Sep 1998 01:56:49 GMT header: Vary: Accept-Encoding header: Last-Modified: Sun, 04 Dec 2005 12:13:31 GMT header: X-Cache-Rules-Applied: yes header: X-Caching-Rule-Id: frontpage header: Cache-Control: max-age=0, s-maxage=3600, must-revalidate header: X-Header-Set-Id: cache-in-proxy-1-hour header: Content-Length: 46357 header: X-Varnish: 1899243585 1899243396 header: Age: 54 header: Via: 1.1 varnish 9
  • 10. Informações ● http://www.apsis.ch/pound/ ● http://varnish.projects.linpro.no/ 10
  • 11. Palestrante Rogerio Ferreira, trabalha na 4Linux como Consultor responsável por Infra Estrutura e Projetos de Zope e Plone. Possui Certificação LPIC-1, LPIC-2 e LPIC-3. É autor de Projeto de Software Livre em Governo Estadual, participou de Projeto de Zope/Plone no Governo Federal. 11