VMware Networking Community
fauzibd75
Contributor
Contributor

cookie SERVERID insert indirect nocache

Hi Guy, how to configure on NSX Loadbalance  as normal haproxy configuration.

frontend rob *:83

    default_backend     rob_backend

backend rob_backend

    balance     roundrobin

    cookie SERVERID insert indirect nocache

    server  app_rob01 10.222.24.73:80 check cookie app_rob01

    server  app_rob02 10.222.24.83:80 check cookie app_rob02

0 Kudos
1 Reply
lhoffer
VMware Employee
VMware Employee

The frontend portion is pretty basic and assuming you're talking about NSX-V is referred to as a "virtual server" which you can find standard configuration details for in the Add Virtual Servers​  section of the admin guide.  For the backend portion, it appears you're just trying to create session persistence based on a cookie set by the load balancer, so in NSX-V you'll actually configure that as part of the "Application Profile" as pictured below:

pastedImage_0.png

0 Kudos