Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Sacándole el jugo a apache

3,624 views

Published on

Cómo optimizar apache para mucho tráfico.

Licencia: CC-By
http://javieraroche.com

Published in: Technology, Art & Photos
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Pinche cosa esta de SlidShare que no me dejo logeado... como decía, MUY BUENA LA PRESENTACIÓN.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Sacándole el jugo a apache

  1. 1. Sacándole el jugo a Apache O cómo optimizarlo para recibir mucho tráfico.
  2. 2. Apache es el webserver más popular <ul><li>50% de los sitios web usan Apache </li></ul>
  3. 3. Primeros pasos de optimización <ul><li>Eliminar módulos innecesarios. </li></ul><ul><li>Comprimir las peticiones. </li></ul><ul><li>Controlar los Headers de Caché </li></ul><ul><ul><li>Eliminar Last-Modified </li></ul></ul><ul><ul><li>Eliminar ETag </li></ul></ul><ul><ul><li>Agregar Expires </li></ul></ul>
  4. 4. Comprimir peticiones <ul><li>Paquetes más pequeños se transmiten más rápido, por tanto las conexiones duran menos tiempo. </li></ul>
  5. 5. Comprimir peticiones <ul><li>Apache 2.2 (mod_deflate): AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript </li></ul><ul><li>Apache 1.3 (mod_gzip): mod_gzip_on Yes mod_gzip_can_negotiate Yes mod_gzip_minimum_file_size 400 mod_gzip_item_include file .html$ mod_gzip_item_include mime ^application/x-javascript$ </li></ul>
  6. 6. Controlar los Headers de Caché <ul><li>Los archivos cambian muy pocas veces, sino es que nunca lo hacen, entonces ¿por qué hacer que los bajen una y otra vez? </li></ul>
  7. 7. Controlar los Headers de Caché <ul><li>Eliminar ETag y Last_Modified: <FilesMatch &quot;(ico|jpg|jpeg|png|gif|css|js)$&quot;> Header unset last-modified Header unset ETag FileETag None </FilesMatch> </li></ul><ul><li>Agregar Expires (mod_expires): ExpiresActive on ExpiresByType application/javascript &quot;access plus 1 week&quot; ExpiresByType image/jpeg &quot;access plus 1 month“ ExpiresByType image/gif &quot;access plus 1 month“ ExpiresByType image/png &quot;access plus 1 month“ ExpiresByType text/css &quot;access plus 1 week&quot; </li></ul>
  8. 8. Modelos de multiproceso en Apache 2.x : Prefork <ul><li>Múltiples procesos atienden las peticiones, un proceso por cada cliente. </li></ul><ul><li>Mucho más amigable con el uso intensivo de PHP. </li></ul><ul><li>Consume más memoria. </li></ul><ul><li>Menos capacidad de atender muchos clientes a la vez (max_clients). </li></ul>
  9. 9. Modelos de multiproceso en Apache 2.x : Worker <ul><li>Múltiples procesos con múltiples hilos atienden las peticiones, un hilo por cada cliente. </li></ul><ul><li>Problemático con los módulos no thread-safe de PHP, como los Acceleradores. </li></ul><ul><li>Consumo mucho menor de memoria </li></ul><ul><li>Mejor capacidad de manejar muchos clientes con menos recursos. </li></ul><ul><li>Ideal para contenido estático . </li></ul>
  10. 10. Prefork <ul><li>Dual QuadCore Intel Xeon 3GHz, 4GB Ram: </li></ul>
  11. 11. Worker <ul><li>AMD Athlon64 X2 Dual Core 5000+, 4GB Ram: </li></ul>
  12. 12. Recursos recomendados <ul><li>Las mejores prácticas, según Yahoo: http:// developer.yahoo.com /performance/ </li></ul><ul><li>Extensiones para Firefox: </li></ul><ul><ul><li>Firebug: http://getfirebug.com/ </li></ul></ul><ul><ul><li>Yslow: http:// developer.yahoo.com / yslow / </li></ul></ul>
  13. 13. ¡Gracias!

×