
所以,這就是問題所在。我正在嘗試使用以下命令將 uri 貼到表中:
stick on path,word(1,/) table nodes
我需要做的是拒絕堅持特定路徑,例如:
/sounds
/libs
/css
/images
因為,如果第一個使用者被分配到第一個節點,第二個使用者和第三個使用者將必須獲得分配給第一個使用者的節點的路徑。
答案1
stick on
支持條件(https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#4-stick%20on)
我不明白你為什麼這樣做(也許是快取?),所以它有可能是錯誤的,但這應該可以做到(未經測試):
acl url_ignore_stick path_beg /sounds
acl url_ignore_stick path_beg /libs
acl url_ignore_stick path_beg /css
acl url_ignore_stick path_beg /images
stick on path,word(1,/) table nodes unless url_ignore_stick