google / seesaw

Seesaw v2 is a Linux Virtual Server (LVS) based load balancing platform.
Apache License 2.0
5.65k stars 511 forks source link

Enabling one_packet : true #102

Closed DefenceLogic closed 4 years ago

DefenceLogic commented 4 years ago

Hi ,

I am trying to enable the one_packet : true configuration in my vserver_entry as per #99

I have the following snippet.

vserver_entry: 
    protocol: UDP
    port: 12210
    scheduler: RR
    one_packet: true
    mode: NAT
    healthcheck: <
      type: TCP
      port: 32999
      tls_verify: false
      interval: 10
      timeout: 5
      retries: 3
    >

When I try to start seesaw, I get the following error message: Failed to load cluster config from disk: line 54: unknown field name "vserver" in config.Vserver

If I remove the one_packet : true directive Seesaw starts properly.

Did I place the one_packet:true directive in the wrong place?

Cheers

Cyberkryption

DefenceLogic commented 4 years ago

Dear All,

I have discovered the solution by myself, in that you have to place it directly after the protocol directive within the vserver_entry as below

vserver_entry: <
    protocol: UDP
    one_packet: true
    port: 12210
    scheduler: RR
    mode: NAT