Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Is it useful to use Varnish, Nginx, and ngx_pagespeed with Odoo v8?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
configurationcachenginxoptimizationwebserverVarnishpagespeedcachingvcl
1 Răspunde
16786 Vizualizări
Imagine profil
Luke Branch

I'm interested to know if anyone has any insight on whether or not using the Nginx version of Google's pagespeed module (https://github.com/pagespeed/ngx_pagespeed) would be useful in an Odoo v8 CMS/E-commerce implementation and whether or not it would affect the backend functionality or performance in a negative way.

From my understanding certain applications/modules such as Varnish, Nginx, HAProxy and Pagespeed theoretically should work with Odoo's own built-in webserver and with the correct configuration all of these applications could be used to enhance the performance of Odoo (eg. Varnish serving cached objects such as css, js, images, and html from RAM).

I'm looking to do a test implementation of Odoo v8 with all of the above applications installed and configured as I would with a Magento instance as well as running an identical implementation of Odoo v8 minus the above applications (Nginx, Varnish, Pagespeed) to benchmark the performance and see if there are changes that need to be made to the configuration. I'll post back here with what I discover, however if anyone has any insight on using these applications in combination with Odoo/OpenERP v7 or the master branch (v8 alpha) I would be interested to hear back on what you have found when implementing any of these applications on an Odoo instance.

Odoo's performance is already pretty good, i'm just interested in using the tools I know for optimising Magento to make Odoo implementations that I setup in the future operate as quickly and efficiently as possible in regards to frontend performance.

4
Imagine profil
Abandonează
Shimon

Let us know what you deciding on doing!!

Ben Bernard

varnish doesn't support https. And varnish behind nginx is not a good idea. Anyhow, I look forward for the benchmark and willing to help.

Luke Branch
Autor

Hi Shimon, I'll post back here as soon as I have a config that's working well with details of what I have found.

Luke Branch
Autor

Hi Ben, I'm thinking of using Pound (http://www.apsis.ch/pound) with Varnish for SSL support. Have you had any experience with it? I may try a Pound > Varnish > Odoo setup first for testing first. I'd definitely be interested in hearing any suggestions yourself or anyone else in the forums have regarding this though. Odoo's already pretty quick, i'd just like to have the frontend serving pages as fast as possible.

Ben Bernard

@Luke I never heard Pound until now. Thanks for the info. Usually I'm happy with just nginx and I never hit scalability issue. What i'm thinking to optimize odoo is from the side of python web server and Python implementation itself.

Luke Branch
Autor

@Ben, Any idea what python webserver Odoo uses, or whether there is a caching layer built-in by default? I'd definitely be interested in any input you have on this as well as optimisations within the python webserver as well.

Luke Branch
Autor

I believe it is based on Werkzeug (http://werkzeug.pocoo.org/), however i'm not sure what the functional differences are between the two.

Ben Bernard

@Luke, between werkzeug and what? I never use the server other than the default, werkzeug. But, Odoo use wsgi standard. There is a lot of wsgi server on the internet. For example gunicorn (http://gunicorn.org/) and CherryPy (http://www.cherrypy.org/).

Luke Branch
Autor

@Ben, I had read somewhere in some old forum posts regarding 6.1 that the python webserver was based on werkzeug. I was under the impression that it was a fork of werkzeug. If it is werkzeug by default this will make it much easier to work with.

Imagine profil
Luke Branch
Autor Cel mai bun răspuns

Further to this thread I have installed Varnish in it's default configuration as follows:

1) sudo apt-get install varnish
2) sudo pico -w /etc/varnish/default and replace the contents of backend default { } with the following lines:

backend default {
    .host = "127.0.0.1";
    .port = "8069";
}

3) sudo pico -w /etc/default/varnish  and replace the following:

DAEMON_OPTS="-a :6081 \
              -T localhost:6082 \
            -b localhost:8080 \
            -u varnish -g varnish \
            -S /etc/varnish/secret \
            -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"

with this:

DAEMON_OPTS="-a :80 \
              -T localhost:6082 \
            -b localhost:8080 \
            -u varnish -g varnish \
            -S /etc/varnish/secret \
​            -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"

which will have varnish serving content on port 80 by default.

4) sudo ufw allow 80

I've done an extremely basic page speed test on webpagetest.org and found the speed between content served on port 80 (ie. varnish port) and content served on port 8069 (ie. Odoo port) and found the page load time to be around 16.5-18% faster when being passed through varnish for first time page load and between 18-18.5% faster when on the second (cached) page load.

Once I have put together a working optimised VCL for Odoo I will post back here again with the results.

5
Imagine profil
Abandonează
Luke Branch
Autor

Further to this, i've just come across this python module: https://github.com/justquick/python-varnish I will try to integrate this with the varnish setup to allow for purging from within Odoo for better varnish cache management. If anyone has any suggestions please comment below.

Anders Wallenquist

I have also done some basic tests with Varnish 4, without any luck. Varnish are 5 % slower than direct Odoo.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Does caching /web/content makes sense?
configuration nginx odoo caching Odoo13.0
Imagine profil
0
nov. 24
7685
Odoo 8.0 takes long time to perform all operations
configuration nginx optimization odooV8 docker
Imagine profil
Imagine profil
1
feb. 20
4523
Why default Nginx config is in conf.d/ folder and not in sites-available/ folder ?
configuration nginx
Imagine profil
Imagine profil
1
mai 24
4080
Caching System In odoo
cache caching
Imagine profil
Imagine profil
1
oct. 23
7583
odoo nginx dbfilter
configuration nginx dbfilter v15
Imagine profil
Imagine profil
Imagine profil
2
mai 24
5043
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now