Перейти к содержимому
Odoo Меню
  • Войти
  • Попробовать бесплатно
  • Модули
    Финансы
    • Бухгалтерия
    • Выставление счетов
    • Расходы
    • Таблицы
    • Документооборот
    • Подпись
    Продажи
    • CRM
    • Продажи
    • POS Магазин
    • POS Ресторан
    • Подписки
    • Аренда
    Вебсайты
    • Конструктор вебсайтов
    • eCommerce
    • Блог
    • Форум
    • Онлайн-чат
    • Электронное обучение
    Логистика
    • Склад
    • Производство
    • PLM
    • Закупки
    • Обслуживание
    • Качество
    Отдел кадров
    • Сотрудники
    • Подбор персонала
    • Отпуска
    • Оценка персонала
    • Реферальная программа
    • Автопарк
    Маркетинг
    • SMM
    • E-mail рассылки
    • СМС рассылки
    • Мероприятия
    • Автоматизация маркетинга
    • Опросы
    Услуги
    • Проекты
    • Табели
    • Выездной сервис
    • Поддержка
    • Планирование
    • Встречи
    Продуктивность
    • Обсуждения
    • Согласование
    • IoT
    • VoIP-телефония
    • Knowledge
    • WhatsApp
    Сторонние приложения Модуль Студия Odoo Платформа Odoo Cloud
  • Индустрии
    Розничная торговля
    • Книжный магазин
    • Магазин одежды
    • Мебельный магазин
    • Продуктовый магазин
    • Строительный магазин
    • Магазин игрушек
    Гостинично-ресторанный бизнес
    • Бар и паб
    • Ресторан
    • Фастфуд
    • Гостевой дом
    • Дистрибьютор напитков
    • Отель
    Недвижимость
    • Агентство недвижимости
    • Архитектурное бюро
    • Строительство
    • Управление недвижимостью
    • Ландшафтный дизайн
    • Товарищество собственников жилья
    Консалтинг
    • Бухгалтерская фирма
    • Партнер Odoo
    • Маркетинговое агентство
    • Юридическая фирма
    • Подбор персонала
    • Аудиторское бюро
    Производство
    • Текстиль
    • Металл
    • Мебель
    • Продукты питания
    • Пивоварня
    • Корпоративные сувениры
    Здоровье и фитнес
    • Спортивный комплекс
    • Магазин оптики
    • Фитнес-клуб
    • Велнес-центр
    • Аптека
    • Салон красоты
    Услуги
    • Специалист по бытовым услугам
    • Продажа и обслуживание IT-оборудования
    • Солнечные энергосистемы
    • Производство обуви
    • Клининг
    • Системы ОВКВ
    Прочее
    • Некоммерческая организация
    • Консалтинг в сфере устойчивого развития
    • Аренда рекламных щитов
    • Бизнес по фотосъемке
    • Прокат велосипедов
    • Реселлер программного обеспечения
    Все индустрии
  • Community
    Обучение
    • Видео уроки
    • Документация
    • Сертификация
    • Тренинг
    • Блог
    • Подкаст
    Образование и развитие
    • Образовательная программа
    • Деловая игра Scale Up!
    • Экскурсия в офис Odoo
    ПО
    • Скачать
    • Сравнить версии
    • Релизы
    Сотрудничество
    • Github
    • Форум
    • Мероприятия
    • Перевод
    • Стать партнером
    • Услуги для партнеров
    • Зарегистрировать бухгалтерскую фирму
    Услуги
    • Найти партнера
    • Найти бухгалтера
    • Встреча с экспертом
    • Услуги по внедрению
    • Отзывы клиентов
    • Поддержка
    • Обновления
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Заказать демонстрацию
  • Цены
  • Поддержка

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

  • CRM
  • e-Commerce
  • Бухгалтерия
  • Склад
  • PoS
  • Проекты
  • MRP
All apps
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Все посты Люди Значки
Теги (Смотреть все)
odoo accounting v14 pos v15
Об этом форуме
Помощь

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

Подписаться

Получайте уведомления о появлении активности в этом посте

Этот вопрос был отмечен
configurationcachenginxoptimizationwebserverVarnishpagespeedcachingvcl
1 Ответить
16790 Представления
Аватар
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
Аватар
Отменить
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
Автор

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
Автор

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
Автор

@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
Автор

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
Автор

@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.

Аватар
Luke Branch
Автор Лучший ответ

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
Аватар
Отменить
Luke Branch
Автор

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.

Не оставайтесь в стороне – присоединяйтесь к обсуждению!

Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!

Регистрация
Похожие посты Ответы Просмотры Активность
Does caching /web/content makes sense?
configuration nginx odoo caching Odoo13.0
Аватар
0
нояб. 24
7685
Odoo 8.0 takes long time to perform all operations
configuration nginx optimization odooV8 docker
Аватар
Аватар
1
февр. 20
4528
Why default Nginx config is in conf.d/ folder and not in sites-available/ folder ?
configuration nginx
Аватар
Аватар
1
мая 24
4084
Caching System In odoo
cache caching
Аватар
Аватар
1
окт. 23
7585
odoo nginx dbfilter
configuration nginx dbfilter v15
Аватар
Аватар
Аватар
2
мая 24
5044
Сообщество
  • Видео уроки
  • Документация
  • Форум
Открытый исходный код
  • Скачать
  • Github
  • Runbot
  • Перевод
Услуги
  • Хостинг Odoo.sh
  • Поддержка
  • Обновление
  • Индивидуальные решения по доработке
  • Образование
  • Найти бухгалтера
  • Найти партнера
  • Стать партнером
О нас
  • Наша компания
  • Активы бренда
  • Cвяжитесь с нами
  • Вакансии
  • Мероприятия
  • Подкаст
  • Блог
  • Клиенты
  • Правовые документы • Конфиденциальность
  • Безопасность
الْعَرَبيّة 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 – это набор бизнес-модулей с открытым исходным кодом, который закроет все потребности вашей компании: CRM, E-commerce, Бухгалтерия, Склад, POS, управление проектами и др.

Odoo сочетает в себе простоту использования и полную интеграцию всех бизнес-процессов в одной системе.

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