nginx 세션1 6. Sticky Session Nginx Plus에서는 아래 세 가지 세션 지속성 방법을 추가적으로 지원하며 설정값은 sticky 지시문을 사용Nginx 기본 버전에서 세션 지속성을 유지하려면 hash 또는 ip_hash 지시문을 사용해야 함 1. Sticky Cookie (클라이언트 쿠키 기반)클라이언트에서 들어오는 쿠키값을 기준으로 세션 지속성을 사용Upstream 그룹의 첫 번째 응답에 session cookie를 추가하고 응답을 보낸 서버를 식별하는 방식upstream backend { server backend1.example.com; server backend2.example.com; sticky cookie srv_id expires=1h domain=.example.com path=/;} srv_id :.. 2024. 11. 12. 이전 1 다음 728x90