Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 122
    • Merge requests 122
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !4

Closed
Created May 26, 2015 by Cédric Le Ninivin@cedric.leninivinDeveloper
  • Report abuse
Report abuse

erp5_cluster: leave ERP5 set the haproxy cookie

  • Overview 7
  • Commits 1
  • Changes

How to remove the haproxy sticky cookie?

  • As Haproxy was configured to always set a sticky cookie on the first request, browser was never able to cache the first HTML page accessed.
  • This cookie increases the number of cache entry in the CDN for anonymous users in case Vary: Cookie header is used. So, it makes CDN useless.

The implemented solution (http://git.erp5.org/gitweb/erp5.git/commit/fa6ceb993bc1d6442f36001166dd3d112efe5949?js=1) is to set the sticky cookie only when an ERP5 user get authenticated (the goal of the sticky cookie to keep a user on the same ERP5 node to use RAM cache)

Now that this commit has been in master for more than a month, I'll update epr5 software release (cluster and master) to configure HAProxy to not set the sticky cookie (note that the postonly option removed in the commit was only on my development branch): http://git.erp5.org/gitweb/slapos.git/commitdiff/c22d3e9077df7e0d896f142177cafaea9edffe45?hp=123e847453e917045d57df84605d2586192984ef;js=1

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: erp5-cluster-haproxy-sticky-cookie
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7