diff --git a/internal/file/bindata.go b/internal/file/bindata.go index fee1a5c9d..58ac16ca6 100644 --- a/internal/file/bindata.go +++ b/internal/file/bindata.go @@ -1,9 +1,11 @@ // Code generated by go-bindata. // sources: +// rootfs/etc/nginx/lua/balancer/chash.lua // rootfs/etc/nginx/lua/balancer/ewma.lua // rootfs/etc/nginx/lua/balancer.lua // rootfs/etc/nginx/lua/configuration.lua // rootfs/etc/nginx/lua/sticky.lua +// rootfs/etc/nginx/lua/test/balancer/chash_test.lua // rootfs/etc/nginx/lua/test/balancer_test.lua // rootfs/etc/nginx/lua/test/up.sh // rootfs/etc/nginx/lua/util.lua @@ -78,6 +80,26 @@ func (fi bindataFileInfo) Sys() interface{} { return nil } +var _etcNginxLuaBalancerChashLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x54\xd1\x8e\x9b\x30\x10\x7c\xe7\x2b\x46\xa8\x52\x13\x29\x20\xb5\x8f\x27\xf1\x09\xd7\x1f\x88\x22\xcb\xc0\x42\x56\xe1\x16\x6a\x1b\x92\xe8\x74\xff\x5e\xd9\x18\x48\x2f\xbd\x97\x3e\x59\xf6\x4e\x66\x66\x67\x37\x74\x7d\xa5\x3b\x18\xb2\xee\xae\xaa\xb3\xb6\x67\x14\x30\xf4\x7b\x64\x43\xbb\x34\x3c\xe7\xe1\x39\xdd\x27\x33\x74\x74\xdc\x3d\x62\xfc\x7d\x2d\x5a\x67\x58\x5a\x65\xc7\x12\x45\xbc\xe4\x76\x2c\x93\x58\x56\xaf\x28\xf0\xfe\x11\x6f\x2c\xd6\x69\xa9\xc8\xce\x8f\x49\x96\xa1\xe5\x89\x04\x5a\xf0\xab\x65\xb9\x61\xd2\x86\x75\xd9\x11\x38\x27\x7c\xf3\x92\x64\x9d\x1a\x0d\x7b\x2c\x3b\x18\x72\xa3\x11\x8b\x49\x77\x23\xa1\x6f\x20\xed\x2d\x9f\xb4\x39\x3e\x40\x4f\x51\xad\x19\xa5\x72\xdc\x0b\x5a\x72\xaa\x1b\xb5\x92\xf6\xa6\x26\x6d\x76\xf1\xdc\x27\xc0\x8c\x9c\xb4\x51\xa2\xdf\x68\x6d\xc1\xf7\xb3\xc0\x0e\xf8\xe9\x91\xb3\xf2\xaa\xb7\xfc\xe4\x94\x90\xd4\x49\xb2\x6a\xa9\xd7\xbc\xd4\x9d\x6f\x72\x57\xea\xea\x42\x52\x6f\x32\x4b\xfb\x28\xb6\x24\x8e\x11\x95\xcf\x64\x00\x37\x90\xde\x6d\x58\x77\x26\x49\x80\xcd\x00\x77\x09\x10\x44\x17\xde\x0b\xdd\x51\x3c\x75\x19\x89\x8f\xe9\x38\x58\x67\x48\xbf\x65\x7e\xaa\x59\x79\x4f\x4f\x9b\x25\x92\x7a\xe8\x59\x9c\x9a\xfb\x7e\x70\xf6\xd2\xb0\xd4\xbb\x0b\xdd\xf7\x9b\x90\xae\x6b\x43\xd6\x1e\x30\xf4\xc6\xa1\x08\x9b\x91\xdb\xa1\x63\xa7\x06\xcd\x66\xf7\x89\xed\x80\xf4\x25\x7d\xc8\xee\x7d\x21\x40\xf1\x44\x15\x8e\x8f\xe7\x30\x0d\xb1\xb0\xfb\xaf\x2c\x57\xac\xf4\xf5\xb2\x72\x40\x96\xe1\x4a\xa8\x7b\xf9\xee\x60\xc7\x21\xe8\x5e\x89\xdb\xb3\xa3\x1a\x55\x2f\x96\xad\x23\x71\xf0\x61\xb1\xb4\x2b\xc9\x8c\x41\x81\x1f\x9e\xb8\xe9\x0d\xd4\x61\x8d\x0f\x2c\xf0\x09\xd8\xc5\x68\xbe\x54\xec\x1e\x75\x1f\xe6\xf7\x55\xe0\xcb\x4b\xbe\x84\x93\xe7\x3e\x37\x7f\xac\x25\xef\x32\x90\x84\x56\x8e\x9f\x48\x4e\x28\xa2\xbd\x6d\x33\xb8\xf9\xc7\x0a\xad\xb3\x8d\xa9\x06\x36\x9f\x29\x75\x96\xfe\x42\x84\xff\xfb\xfa\x85\x78\x11\xba\x6e\x60\x7c\x95\xf8\xc3\x2c\xa2\x91\x60\x26\x4e\x5f\xbd\x26\x7f\x02\x00\x00\xff\xff\x65\x9c\xfb\x0e\x7b\x04\x00\x00") + +func etcNginxLuaBalancerChashLuaBytes() ([]byte, error) { + return bindataRead( + _etcNginxLuaBalancerChashLua, + "etc/nginx/lua/balancer/chash.lua", + ) +} + +func etcNginxLuaBalancerChashLua() (*asset, error) { + bytes, err := etcNginxLuaBalancerChashLuaBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "etc/nginx/lua/balancer/chash.lua", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + var _etcNginxLuaBalancerEwmaLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\x6d\x6f\xdb\x38\x12\xfe\xee\x5f\x31\xf0\x21\x77\x72\x2b\xcb\x76\x9a\xf6\x52\xa3\x5e\x20\xdb\x75\x81\xa0\x9b\x36\x48\x0a\x14\xdd\x22\x10\x68\x69\x64\x71\x2d\x91\x5a\x92\x8a\x12\x14\xed\x6f\x5f\x0c\xa9\x37\xdb\x49\xb3\x69\xb1\x5f\x1c\x91\x9c\xb7\xe7\x99\xe1\x70\x32\x1e\xc3\x7b\xc5\xd7\x5c\xb0\x0c\x4e\x4a\x93\x4a\xa5\xe7\x70\x99\xf2\x6b\x78\xc7\xd6\x4c\xb1\x3f\x99\x80\xff\xc2\x65\x24\x8d\x81\x37\x8a\x89\x88\xeb\xc1\x78\x0c\x27\x51\x84\x5a\x63\x3c\x87\x33\xa6\xa2\x14\x66\x87\x3e\x1c\x4e\x67\xc7\x74\x76\x2a\x74\xc1\x15\x33\x5c\x0a\x88\x15\xab\x04\x24\x4a\xe6\x73\x3a\x4a\x8d\x29\xf4\x7c\x32\x59\x73\x93\x96\xab\x20\x92\xf9\xc4\x54\xdc\x18\x54\x93\x84\x0b\xb6\xce\x70\xb2\xca\xe4\x6a\x32\x5b\x45\xc7\xcf\xfe\x1f\x1d\x25\xc8\x92\x68\x3a\x7d\xf9\x02\x8f\x9e\x45\x53\x7c\x79\xfc\x7c\xf6\x82\x1d\xe3\x2c\x7a\x3e\x8d\x8e\x8e\x0e\x67\x64\x13\xa0\xd1\x1d\x47\x52\xe1\x44\xab\x68\x92\x33\x2e\x26\x3a\x62\x19\x9b\xdc\xe5\x23\x93\x2c\x5e\xb1\x8c\x89\x08\xd5\xe4\x1c\xd9\x66\x59\xe5\x2c\xb0\xf2\x83\xc1\x20\x93\x11\xcb\x40\xa1\x36\xb7\x61\x26\xa3\x0d\x2c\x40\xe1\x5f\x25\x57\xe8\x0d\xed\x6e\x40\xbb\xc3\x51\x2d\x58\x1a\x9e\xf5\x45\x68\x3d\x1c\x35\x66\x7e\x5b\xbe\x3e\xf9\x14\x7e\x38\x3d\x5b\xc2\x02\x66\x53\x18\x8f\xc1\xa4\x5c\xc3\x35\xcb\x4a\x04\xae\x81\x0b\xd0\x18\x49\x11\xeb\x5a\xe3\xf7\xf7\xaf\xdf\x86\x6f\x97\x9f\x60\x01\xc3\x39\x56\x39\x0b\x37\x78\x3b\xac\x0f\xcf\x4f\x5f\xbf\x0d\x2f\x97\x1f\xc2\xcb\xd3\x3f\xc8\xe2\x61\xe3\xc7\x0a\xb6\xd1\x36\xa1\xcf\x05\x56\xde\x90\xbe\xf4\xd0\x87\x2f\x86\xe7\x28\x4b\x03\x0b\x98\xfa\x80\x37\x05\xad\x69\x11\xcc\xbe\xb6\x01\x87\x67\xb0\x80\x2f\x5f\x9b\x65\x52\x8a\xc8\x66\x92\x8c\x78\x65\xa1\x8d\x42\x96\x8f\x06\x00\xb5\xb8\x0f\xa8\x14\x2c\xba\x00\xe6\x5b\x92\x10\x04\x2d\x22\xd2\xe2\x89\x95\x37\x29\x8a\x01\x40\xbb\xfe\xb6\x80\x61\x1d\xdd\xb0\x3b\x04\x10\xeb\x9b\x20\x93\x6b\x8f\xfe\x2e\x2f\x2e\x7c\xd0\x46\x71\xb1\x0e\x12\xa9\x72\x66\xbc\xe1\xf2\xe3\xd9\x09\xfc\x5a\xa7\x12\x12\xc6\x33\x8c\xc1\x48\x1b\xed\x1c\x0e\x08\xb5\x91\x4e\xc7\x43\xa5\x46\xa3\x91\x35\x8c\x22\x1e\xb8\xdf\x01\x80\x42\x53\x2a\x41\x61\x0c\xec\xce\x0e\xf0\x52\x58\x40\x1d\x64\xb9\xd9\xc7\xdc\x13\xe2\x09\x08\x69\x40\x6e\x3a\x1c\x3f\x8a\xc2\x59\xbd\x17\xc7\x3f\x8b\x3f\xc6\x88\xdd\x86\x14\xaa\x47\x3f\x3e\x64\x4c\x9b\xd0\xc8\x32\x4a\x31\x0e\x99\xf1\x41\x19\xe3\x83\x90\x55\x07\xd1\xc4\xb0\xa0\x1d\x18\xef\x4a\x0f\xc0\x1d\x7a\x26\x86\x5f\x60\x3a\x02\x26\x62\xda\x91\x0a\xa6\xad\x7a\x85\x7c\x9d\x52\x99\xe5\xcc\xa4\x01\xde\x14\xde\xd8\xc4\x93\xee\x2a\x8c\x28\x6c\x0a\xa6\xe6\x10\x9e\x34\x2a\x4f\x29\x18\x78\x02\xde\x2c\x98\xc2\xb8\xde\x1d\xf5\x40\x56\x39\xbb\x13\xe5\x1a\x4d\x28\x55\x58\x16\x31\x33\xe8\xd0\x36\x25\x58\x03\x74\x47\x1d\x46\xa2\x36\x74\x79\x14\x3c\x73\x89\x73\x32\x5d\xe2\x7a\x32\x7b\xf5\xef\x6a\xa8\xbb\x7d\x64\x67\x7d\x13\xe8\x94\x29\x8c\x83\xa6\xbd\xd8\x50\xe6\x6b\x34\x9d\x6e\xc3\x15\x4f\x3a\xfb\xdf\x6c\x10\x9d\xe3\x1e\x5c\xbf\x95\xea\x52\xee\xbc\x52\x82\x9c\x53\x21\xab\x5e\x81\xee\xa4\xec\x3b\x81\x85\x3b\xa2\x77\x07\x5a\xa3\x7b\x4c\x21\x75\xf7\x60\x97\xd2\x2d\x64\x8e\xf8\x2d\x50\xba\xb4\x4f\x8b\xbd\x62\x3e\x24\x52\x45\x7c\x95\xe1\x63\x30\xe8\x1e\x86\xb6\xae\xeb\x68\x6a\xeb\x77\x5f\xcd\x8f\x27\x17\xef\x7c\x18\x3e\x68\xbd\xb9\xa1\x43\x6a\x6e\x74\x1b\xdb\x6a\xe0\x49\x17\xf1\xcf\xb9\xb8\x66\x19\x8f\x81\x1b\xcc\x75\x63\xf2\x16\xe4\x35\xaa\x4a\xd1\x5b\x26\x86\xbd\x06\xf0\x68\xca\x76\x28\xa2\xad\x9f\xe1\xe8\x5f\xe0\xe4\xd1\x1c\xf4\x1a\xf0\x5e\x85\x59\x91\xdd\x86\xa1\x69\x58\xd8\xba\xd0\xfd\x51\x88\xe7\x45\x86\x39\x0a\xe3\xc6\x98\x52\x63\x0c\x82\xe5\xa8\x9d\xdc\x52\xc4\x85\xe4\xc2\x68\x88\xa5\xf8\x9f\x81\x94\x5d\xa3\x3b\xf7\x41\x4b\x28\x98\xd6\x5c\xac\xe9\x6d\x3f\x3d\x9f\x9f\x4b\x65\x80\x69\xd8\xe0\x2d\x70\xa1\x0d\xb2\xae\x71\x34\xfe\x43\x52\x86\x45\xbb\x0e\x58\x1c\x2b\x4a\x42\x10\xc0\x70\x6e\x49\x6d\x8f\x0a\xa9\x4c\x07\xf3\x3b\x8d\xcf\x1a\xf5\xe9\xad\x4f\x58\xa6\x71\xe4\x88\x18\x8f\x77\xd1\x69\x9e\xf3\x8c\x29\x7a\x71\x9a\x01\x0d\x45\x50\xf1\x0d\x2f\x30\xe6\x2c\x90\x6a\x3d\xa1\xd5\xe4\x0d\xd7\x29\xaa\x83\xe5\xe1\xc1\xf1\xf4\xe0\xe5\xb3\x4f\xcc\xa0\x0e\x75\x5a\x26\x49\x86\x64\x57\xaa\x07\x0c\x5c\x30\x11\xcb\x3c\x2c\x50\xe5\xa5\x73\x4e\x6a\x99\x94\x85\x9d\x11\x61\x46\x40\x37\xb4\x57\xf0\x68\x03\x0c\x94\x55\xa8\xa7\x25\xe5\x84\x4c\x8a\xa0\x90\x46\x3c\xe2\x98\x0a\x45\x26\x50\x0a\xd2\xc0\xd8\x89\x6a\xf0\x38\x99\x12\x23\xb2\xa5\x2b\x56\x58\x2d\x67\x86\x19\x28\xa4\xe6\x16\x3a\x87\x8a\x9b\xf4\x9e\x43\xb5\x57\x33\x0e\x6a\x58\x20\x2a\xed\xd9\x5f\x1f\x36\x54\x3b\x89\x54\xc0\x17\x33\x1f\x36\x10\xcb\xe6\xe9\xa0\x29\x92\x89\x38\xe4\x22\xc6\x9b\xe6\x35\x74\x88\x3c\xee\xff\xc7\xea\xbb\x79\xc4\x7e\x7e\xe6\x57\x7e\xfd\xd5\xa9\x5d\xc1\x62\x7f\xcf\x6f\x15\xda\x5b\x46\x94\xd9\x3d\x47\xe1\x15\x54\x3c\x73\x2f\x44\x24\x85\x61\x5c\xb4\x64\x66\xb7\xa0\x31\xc3\xc8\x60\x0c\x1b\xc7\xa8\x0b\xe5\xce\x77\x95\x58\x0d\xc9\xb3\xbb\x2f\x7d\xcc\xf7\xb3\xd1\x3c\xb0\x15\x6a\xe3\x14\x5b\x0e\x66\x77\x1e\xc3\x02\x7a\xf6\x3f\xef\x6b\x5e\xb5\x24\xd3\xd0\xbb\x47\xb3\xc0\xea\x4e\x43\xfc\x6a\xd4\x4c\x99\x9d\xc8\xab\x6d\xd7\xbd\x69\x73\xdf\xaf\xbf\x1b\x26\xf7\x3b\x4b\x3b\xa3\x64\x7b\x25\xef\x05\xe1\x18\x6e\xb9\x0d\xcf\x9a\xb6\xec\xb5\xb5\xc0\x93\x3a\x1b\xb0\x58\xc0\x6c\xef\xd9\xac\x73\x7c\xb5\x33\x7f\xd0\xd4\xef\xd5\x7a\xaf\xb6\xff\x49\x70\x13\x5a\x7d\x26\xd5\xf6\x61\x6b\x80\x8e\xc3\x48\x16\xb7\xd4\x83\x0c\xcf\x82\x18\xb1\xa0\x75\x17\x59\x13\xc1\x7e\x41\x58\x45\x9b\xfa\x3d\x7c\x2c\x31\xa8\xc2\x06\x65\x57\x1b\x0a\x75\x21\x85\xc6\xb0\xfe\x17\xc4\x48\x51\xe6\x2b\x54\x9e\x75\x4e\x3d\x2d\xe1\x4a\x9b\xd0\x5e\x4a\xfb\x4a\x5c\x33\x15\xb4\x8d\x6d\x4b\x7d\x34\xda\x9e\x3e\x23\x29\x04\x46\xe6\x07\x4d\xf7\xb5\x77\x2d\xd3\x6c\xba\xd8\xb6\xff\x74\x1b\xca\x5e\x63\x6f\xf8\x7c\xd0\x2f\x35\xfc\x66\x6e\xb2\x1a\x5c\x87\xab\x8c\x89\xde\xd0\xb9\x5b\x0d\x6d\x11\x3c\x3c\xfc\x1a\x55\x36\xfd\xbf\xce\x63\x78\x36\xf8\x3b\x00\x00\xff\xff\x3b\x53\x47\x97\xfc\x0f\x00\x00") func etcNginxLuaBalancerEwmaLuaBytes() ([]byte, error) { @@ -98,7 +120,7 @@ func etcNginxLuaBalancerEwmaLua() (*asset, error) { return a, nil } -var _etcNginxLuaBalancerLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x58\x5f\x6f\x1b\xb9\x11\x7f\xd7\xa7\x18\xec\x93\x16\x95\x16\x71\xd1\x27\xa3\x2a\xe0\x24\xba\xd6\x88\x23\x1f\x14\x27\x87\xc3\x21\x20\xe8\xdd\x91\xc4\x13\x45\x6e\x49\xae\x65\xf7\x70\xf9\xec\xc5\x70\x97\xdc\xbf\xb6\x13\xe0\x5e\x6c\x89\x1c\xce\xff\xf9\xcd\x8c\xa4\xce\xb9\x04\xb5\x7f\x64\xf7\x5c\x72\x95\xa3\x81\x15\x18\xfc\x6f\x25\x0c\xce\x13\xb5\x7f\xcc\xc2\x79\x92\xce\x6a\xe2\xdf\xad\x56\x5d\xa2\x9c\x0e\xe2\x6d\xae\xd5\x4e\xec\x2b\xc3\x9d\x18\x90\x75\x2f\x22\x79\xe5\x84\xec\x52\xd1\xf7\x78\x29\x4d\x95\xf3\xfc\x80\x5d\x02\x83\xd6\x3d\x65\xe1\x26\x92\xfa\x63\x26\x75\x7e\x9c\x20\xd6\xf9\x31\x12\xe2\xf9\xc4\xbb\x24\xc1\xbc\x8c\x2e\x22\x95\x75\x22\x3f\x3e\x75\xe9\xea\x93\x24\x9d\xcd\x96\x4b\x38\x21\xb7\x95\xc1\x02\x84\x02\x8b\xb9\x56\x85\xa5\xe3\x9d\x36\xc0\x15\x6c\xf6\x42\x3d\xc2\x59\x9b\x23\x1a\x70\x1a\x4a\x91\x1f\xa1\x2a\xc1\x1d\x10\x14\x9e\x41\x0a\xeb\x40\xef\xa0\x2a\xad\x33\xc8\x4f\x50\x22\x1a\xcf\x40\x38\x38\x0b\x29\xc1\xf1\x23\xc2\x3f\x89\xbe\x40\xc9\x9f\xa0\x52\xe4\xa6\x5c\x2b\x67\xb4\x94\x68\xe0\xe7\xdb\x4f\x77\x58\x78\x8e\xf7\x3c\x3f\xa2\x2a\x40\xdf\xff\x8e\xb9\x23\x79\x74\x5a\xeb\x80\xaa\x28\xb5\x50\xee\x5f\xf0\x37\x78\x7b\xf5\xee\xc3\x7a\xf3\xfe\x13\xfb\xf4\xeb\xe6\x1d\xbb\xde\xdc\xad\xb7\x5f\xae\x6e\x1a\x7b\xa7\x2f\x61\x05\x17\xb3\x86\x62\x7b\xfb\x79\xf3\x9e\x6d\x6f\xdf\x5e\x6f\xd8\xcd\xed\xbb\x0f\xec\xc3\xfa\x57\x58\x41\x62\x74\xa5\x0a\x66\xf4\xbd\x50\x49\x43\xfa\x7e\xfd\xd3\xd5\xe7\x9b\x3b\x76\xf3\x96\x5d\xdd\xfc\x7b\x44\x14\x22\xd6\x9e\x31\xeb\xb8\xa3\x28\x53\xbe\xd9\x03\x37\x58\x64\xa3\xeb\xf0\x8e\x7d\x84\x15\xfc\xf1\xe7\x14\x9b\x18\xfe\x90\x0b\x97\x0a\xcf\xf3\x84\x3e\xd9\x64\x01\x7f\x38\x71\x42\x5d\x39\x58\xc1\x9b\x05\xe0\x63\x49\xdf\xe9\x4b\x76\xf1\x67\x1a\xf8\x35\xee\xb4\x0b\x40\x43\xb5\x10\x32\x2d\x23\x56\x17\x6f\xfe\xfe\x8f\x74\x26\x76\xa0\xb4\x8b\x94\xe4\x6f\x35\x03\x30\xe8\x2a\xa3\xe8\x99\x36\xf3\x64\xc7\x85\xa4\x08\x69\xc8\x0d\x92\x75\x14\x95\x3a\x9b\x29\x4d\xc2\xe3\x4b\x48\x20\xcb\x60\x4e\xc2\xb4\x81\xa4\x52\x47\xa5\xcf\x2a\x49\xd3\x19\xaa\x22\x28\xb5\xab\x54\xee\xeb\x69\x8f\x8e\xe5\x95\x31\xa8\x1c\x6b\x58\xcc\xd3\x19\x40\x4f\x77\xa6\xf8\x29\x78\xf3\x81\x9b\xac\x34\xfa\xf1\x89\x85\x6c\xf3\xb7\xc3\x27\xb0\x6a\x35\xda\xa3\x9b\x77\x39\xa5\xb3\x19\x40\xdf\xe6\x60\x32\x78\x19\x52\xef\xe7\xf4\xff\x97\xab\xed\x66\x01\x89\xd2\x91\xac\x0f\x06\x3b\x0a\x95\xb7\xde\xdb\xec\xb4\x75\x46\xa8\x7d\x5f\x18\x59\xe3\x2d\x8f\x0e\x6d\xae\x5f\xf5\x87\xbc\x67\x5c\xee\xc7\xee\x80\xd5\xb3\x6e\x7b\xce\xaa\x46\xb2\x12\xf2\x39\x6d\x7e\x4b\xa4\xe6\xc5\xb2\x41\x8f\xe4\x2b\x05\xaf\x9f\xf7\x93\xfa\x36\xf4\x7f\xb1\x92\x8b\x8e\xa6\x81\x6f\xed\x8d\x01\xdb\x91\x8b\x84\x65\x11\xea\xea\x0f\x59\x3c\x0a\x71\x09\xf1\x6f\x69\xa3\x0a\x0d\xa4\x36\x28\xd3\xf2\x20\x99\xe1\xb4\x65\x43\x2f\xc4\xae\x25\xff\xb6\x22\xbd\x5b\x6e\x6d\x09\x35\x14\x19\x2f\x0a\x83\x96\x6a\x31\x9c\x94\xda\x38\x4f\x5c\xdb\x0a\xad\x9d\x7d\x90\x89\x61\x13\xbb\x48\xb2\x82\x44\x94\xec\xc0\xed\x21\x69\x85\x2e\x97\x70\x77\xfb\xfe\x76\x8e\xf2\x41\x28\xdc\xa1\x2a\x44\x0a\xe2\x54\x4a\x3c\xa1\x72\xe0\x4b\x65\x18\xfc\x2c\xa8\x63\x7f\x7b\xf3\xb5\x55\x72\xf2\xb6\x51\x18\xa5\xc5\xbe\x2a\xbe\xdf\xbc\xe0\x4a\xba\x0f\xcd\x77\x3e\x62\x9d\xce\x7e\xc8\x5f\x23\x67\x7c\x5b\x0d\x61\xfa\x85\x92\x8e\x95\x5a\x3f\x4e\xa9\x7a\x13\x10\xd6\xe7\xa5\xad\x4a\x12\x82\xc5\x02\x76\x5c\x4a\xa1\xf6\xde\x11\x84\x7c\xbe\xcc\xfb\x62\x3a\xe5\xbd\x5c\xc2\x96\x42\xb6\xdc\x52\xc8\xa8\xc2\x06\x50\x7e\x49\x7f\xa2\xe9\x1e\xd4\xb2\x6c\xb2\x11\xb5\x09\x2d\xb9\x75\x4c\xa8\x02\x1f\xa9\x11\x0c\x7b\x48\x17\xdb\xb2\x1a\xdb\x62\x25\xd0\x9b\x45\x37\x00\x0a\x1f\xdd\xd8\xf1\x8b\x8e\x88\x4e\x75\xd6\x22\xa3\x0f\x83\x06\x17\x21\x57\x03\xd3\x71\x8e\x78\xd2\xaf\x83\xea\xb5\x55\x9e\xfb\x40\xee\xb4\xc9\xc5\xbd\xa4\x2c\x8c\x67\x68\x4c\x7b\x31\x69\xa6\x1d\x98\xb9\x80\xa1\xbe\x0d\xb3\x17\x81\x7c\x92\x2f\x34\x8d\xcd\xc7\x16\x8d\x49\xa3\xe6\x62\xd7\x2a\xf5\xe3\x6c\x1f\xb8\x14\x05\x08\x87\x27\x1b\xd8\x3c\x81\x7e\x40\x73\x36\xc2\x39\xa4\x89\xb1\x23\x68\x02\x8b\x1a\xe8\xb1\x5d\xe8\x09\x1f\x62\x6d\xb6\x4c\x46\xc9\x56\xa9\x1f\x48\xb7\xd9\x77\xd7\xde\x54\x17\xb0\x4f\x2a\x8f\x10\xdf\xd1\x2c\xb6\xe0\x71\xfc\xba\x58\xbc\x5c\x02\x97\x56\xd3\x9c\x83\xce\xcf\x15\x06\x6d\x89\xb9\x13\x0f\x08\x71\x8c\xaf\x67\x2a\x2b\x54\xde\xce\x88\x07\x6e\x21\x3f\x70\xb5\xc7\xa1\x0b\xea\x40\x14\x28\xd1\xe1\xa0\x42\x66\x11\x24\x2f\x61\xeb\x45\xd6\xac\xf5\x0e\xd6\xbf\x7c\xbc\x82\x12\xe3\x38\x33\xee\x3e\xdf\xdf\x2e\x87\x50\x3d\xc0\xc7\xce\x68\x18\x4c\x64\x44\x72\xb9\x93\x95\x3d\x30\x2e\xe5\x3c\x7d\x91\x90\xf9\xba\x75\xba\xca\x0f\x58\x30\xee\x06\x0f\x1b\x50\xea\xe6\xeb\xf5\xe6\xa7\xdb\x05\x24\x14\x2d\xa3\x95\xf8\x5f\x3d\xc5\xe4\x9a\x9a\x83\x43\x3f\xc9\x34\xe3\x5b\xdf\x61\xaf\x85\xdc\x8e\xdb\xbf\x65\x05\x77\xb4\x97\xf4\x26\x26\xdf\x47\x7b\x14\x13\x03\x41\xf3\x74\x30\x16\xb4\x16\xd5\x72\xf4\x71\x41\xbb\x47\xe4\x06\x2b\x28\x73\xb2\x9d\x96\xb7\xac\xc0\x5c\x17\x6d\x96\xd5\x2c\x3b\xa2\xf4\x71\xba\xa2\xd7\xdb\xed\x02\x20\xc9\x75\x25\x0b\x4f\x58\x72\x63\xb1\x9d\x8c\x89\xcd\xe5\x60\xda\xeb\x6a\x91\xa6\x93\x2a\xd3\x88\xc8\x7a\xfa\xd2\xa2\x55\x72\x61\x6c\xff\x39\x14\xba\xd3\x3c\x9f\x99\x65\x3b\x2f\x22\xe6\x0f\x27\xe6\xa6\x28\x60\x05\xce\x54\x38\x0b\xa3\xca\x68\xe6\x82\x89\x17\x64\x37\xad\xad\x59\x81\x58\x32\x4a\x0f\x6e\x62\x0d\xf5\xac\x48\xe3\xe4\x32\x10\x10\xb9\x75\x04\xf5\x40\x62\x92\x49\xfd\x77\x2a\xdb\xf8\xce\xa1\x61\xe3\x61\xf3\xb5\xa1\xf0\xc5\x0a\xf4\x03\xc9\x98\x73\xd4\x21\x4a\x67\x1f\x33\xa1\x84\x63\xf5\x06\xec\x89\x58\x58\xa7\x28\x6b\x68\xed\x32\x19\x3e\xa0\x79\x9a\x4f\x2f\x9e\x8b\x7e\xbd\x34\xaa\x11\x87\xe7\xd3\x30\xf1\x8b\x17\x9c\x0f\x48\x3b\xb9\x73\x34\x88\xd0\xd2\xdd\x0a\xf3\x79\xd5\x63\x3c\xcc\x4d\xea\x67\xcf\xda\x94\x07\xa8\xa8\x7d\x59\x1e\xb8\x0d\x5b\x16\xb9\xd3\x7f\x0f\x5e\x6c\x2e\x57\x90\x48\xbd\xef\xf8\x70\xec\xbe\x41\xf6\x77\x5e\x7f\x5b\x41\xfc\x75\x22\x19\x8d\xfd\xcd\x9a\x79\xaa\xac\x83\x7b\xda\x2c\xa5\xac\x7f\x8f\x88\x0d\x40\x1b\x90\x7a\xbf\x80\xfb\xca\xc1\x99\x80\x3f\x90\x34\x56\x7b\x29\x7d\xe8\x8b\x3f\x02\xf9\x36\x7a\xd2\x06\x99\x33\x02\xed\xfc\x22\x6d\xa1\xe4\xa0\xad\x5b\x00\x35\x37\x5f\x69\xad\x29\x0d\x58\xd0\xfd\x00\xb7\x1d\x77\x95\x6d\x7c\xf5\x9f\xbb\xbb\x9f\xd9\xa7\xf5\xf6\xcb\xf5\xbb\x35\xfb\xbc\xb9\xfa\x72\x75\x7d\x73\xf5\xf6\x66\xfd\x22\x78\xcd\xc0\x23\x58\xcc\xa1\xbe\xa2\x21\x93\x4b\x44\x33\x6f\xd5\x6b\x74\x9a\x02\xaf\xa6\xc6\x22\xca\x37\xdf\x93\x86\x93\xff\x45\x86\x06\x5c\xdf\x60\x9b\x41\xd6\xdb\x45\x93\xef\x65\xed\x3e\x72\x80\x1f\x84\x2b\x4b\xb9\xd6\x14\x4e\x3f\xa1\xa6\xea\xac\x8e\x7a\xda\x2c\x05\xaf\x24\xb3\x90\x18\xb3\x39\x28\xd7\xfb\xdd\x08\x9c\x7e\x35\x8b\x9b\x94\x61\x1f\x67\xff\x0f\x00\x00\xff\xff\x4e\x72\xa7\xc6\xef\x13\x00\x00") +var _etcNginxLuaBalancerLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x58\x5f\x6f\x1b\xb9\x11\x7f\xd7\xa7\x18\xec\x93\x16\x95\x16\x71\xd1\x27\xa3\x2a\xa0\x24\xba\xd6\x88\x23\x1f\x14\x27\x87\xc3\x21\x20\xa8\xdd\x91\xc4\x13\x45\x6e\x49\xae\x65\xf7\x70\xf9\xec\xc5\x70\x97\xdc\x3f\x5a\xdb\x09\xda\x17\x5b\x22\x87\xf3\x7f\x7e\x33\x23\xa9\x73\x2e\x41\xed\x1f\xd9\x96\x4b\xae\x72\x34\xb0\x00\x83\xff\xae\x84\xc1\x69\xa2\xf6\x8f\x59\x38\x4f\xd2\x49\x4d\xfc\xbb\xd5\xaa\x4b\x94\xd3\x41\xbc\xcd\xb5\xda\x89\x7d\x65\xb8\x13\x03\xb2\xee\x45\x24\xaf\x9c\x90\x5d\x2a\xfa\x1e\x2f\xa5\xa9\x72\x9e\x1f\xb0\x4b\x60\xd0\xba\xa7\x2c\xdc\x44\x52\x7f\xcc\xa4\xce\x8f\x23\xc4\x3a\x3f\x46\x42\x3c\x9f\x78\x97\x24\x98\x97\xd1\x45\xa4\xb2\x4e\xe4\xc7\xa7\x2e\x5d\x7d\xd2\x9a\x79\xe0\xf6\x30\xca\xc7\xdf\x24\xe9\x64\x32\x9f\xc3\x09\xb9\xad\x0c\x16\x20\x14\x58\xcc\xb5\x2a\x2c\x1d\xef\xb4\x01\xae\x60\xbd\x17\xea\x11\xce\xda\x1c\xd1\x80\xd3\x50\x8a\xfc\x08\x55\x09\xee\x80\xa0\xf0\x0c\x52\x58\x07\x7a\x07\x55\x69\x9d\x41\x7e\x82\x12\xd1\x78\x06\xc2\xc1\x59\x48\x09\x8e\x1f\x11\xfe\x4e\xf4\x05\x4a\xfe\x04\x95\x22\x77\xe6\x5a\x39\xa3\xa5\x44\x03\x3f\xdf\x7d\xba\xc7\xc2\x73\xdc\xf2\xfc\x88\xaa\x00\xbd\xfd\x1d\x73\x47\xf2\xe8\xb4\xd6\x01\x55\x51\x6a\xa1\xdc\x3f\xe0\x2f\xf0\x76\xf9\xee\xc3\x6a\xfd\xfe\x13\xfb\xf4\xeb\xfa\x1d\xbb\x59\xdf\xaf\x36\x5f\x96\xb7\x8d\xd9\xe3\x97\xb0\x80\xab\x49\x43\xb1\xb9\xfb\xbc\x7e\xcf\x36\x77\x6f\x6f\xd6\xec\xf6\xee\xdd\x07\xf6\x61\xf5\x2b\x2c\x20\x31\xba\x52\x05\x33\x7a\x2b\x54\xd2\x90\xbe\x5f\xfd\xb4\xfc\x7c\x7b\xcf\x6e\xdf\xb2\xe5\xed\x3f\x2f\x88\x42\x64\xdb\x33\x66\x1d\x77\x94\x0d\x94\x97\xf6\xc0\x0d\x16\xd9\xc5\x75\x78\xc7\x3e\xc2\x02\xfe\xf8\x73\x8c\x4d\x4c\x93\x90\x33\xd7\x0a\xcf\xd3\x84\x3e\xd9\x64\x06\x7f\x38\x71\x42\x5d\x39\x58\xc0\x9b\x19\xe0\x63\x49\xdf\xe9\x4b\x76\xf5\x67\x1a\xf8\x35\xee\xb4\x33\x40\x43\x35\x13\x32\x32\x23\x56\x57\x6f\xfe\xfa\xb7\x74\x22\x76\xa0\xb4\x8b\x94\xe4\x6f\x35\x01\x30\xe8\x2a\xa3\xe8\x99\x36\xd3\x64\xc7\x85\xa4\x08\x69\xc8\x0d\x92\x75\x14\x95\x3a\xeb\x29\x4d\xc2\xe3\x6b\x48\x20\xcb\x60\x4a\xc2\xb4\x81\xa4\x52\x47\xa5\xcf\x2a\x49\xd3\x09\xaa\x22\x28\xb5\xab\x54\xee\xeb\x6e\x8f\x8e\xe5\x95\x31\xa8\x1c\x6b\x58\x4c\xd3\x09\x40\x4f\x77\xa6\xf8\x29\x78\xf3\x81\x9b\xac\x34\xfa\xf1\x89\x85\x6c\xf3\xb7\xc3\x27\xb0\x68\x35\xda\xa3\x9b\x76\x39\xa5\x93\x09\x40\xdf\xe6\x60\x32\x78\x19\x52\xef\xa7\xf4\xff\x97\xe5\x66\x3d\x83\x44\xe9\x48\xd6\x07\x8d\x1d\x85\xca\x5b\xef\x6d\x76\xda\x3a\x23\xd4\xbe\x2f\x8c\xac\xf1\x96\x47\x87\x36\xd7\xaf\xfa\x43\x6e\x19\x97\xfb\x4b\x77\xc0\xe2\x59\xb7\x3d\x67\x55\x23\x59\x09\xf9\x9c\x36\xbf\x25\x52\xf3\x62\xde\xa0\x43\xf2\x95\x82\xd7\xcf\xfb\x51\x7d\x1b\xfa\xff\xb3\x92\xb3\x8e\xa6\x81\x6f\xed\x8d\x01\xdb\x0b\x17\x09\xcb\x22\x24\xd6\x1f\xb2\x78\x14\xe2\x12\xe2\xdf\xd2\x46\x15\x1a\xe8\x6d\x50\xa6\xe5\x41\x32\xc3\x69\xcb\x86\x5e\x88\x5d\x4b\xfe\x6d\x41\x7a\xb7\xdc\xda\x12\x6a\x28\x32\x5e\x14\x06\x2d\xd5\x62\x38\x29\xb5\x71\x9e\xb8\xb6\x15\x5a\x3b\xfb\x20\x13\xc3\x26\x76\x6d\xc8\x42\x09\xcc\x09\xca\xe7\xdb\xa7\xe4\xeb\x0b\xa6\x78\xbc\x0f\x5d\xb2\x6f\xc4\x77\xab\xd9\xea\x10\xd4\x5c\x40\x22\x4a\xe6\x5b\x49\x2b\x7b\x3e\x87\xfb\xbb\xf7\x77\x53\x94\x0f\x42\xe1\x0e\x55\x21\x52\x10\xa7\x52\xe2\x09\x95\x03\x5f\xae\xc3\x04\xcc\x82\x2c\xfb\xdb\x9b\xaf\xad\x06\xa3\xb7\x41\x1b\x69\xb1\xaf\x8a\xef\x8d\x2f\xf8\x80\xee\x87\x2e\x68\x59\xff\xaf\xce\xf8\xb6\x18\xb6\x8a\x17\x60\x25\xa2\x45\xfd\x38\x25\x04\x49\x40\x58\x5f\x1b\xb6\x2a\x49\x08\x16\x33\xd8\x71\x29\x85\xda\x7b\x47\x10\xfa\x7a\xa8\xe9\x8b\xe9\x40\xcc\x7c\x0e\x1b\x4a\x9b\xf9\x86\xd2\x86\xaa\x7c\xd0\x4e\xae\xe9\x4f\x34\xdd\x03\x6b\x96\x8d\x36\xc3\xb6\xa8\x24\xb7\x8e\x09\x55\xe0\x23\x35\xa3\x61\x1f\xeb\xe2\x6b\x56\xe3\x6b\xac\x46\x7a\x33\xeb\x06\x40\xe1\xa3\xbb\x74\xfc\xac\x23\xa2\x83\x10\xb5\xc8\xe8\xc3\xa0\xc1\x55\xa8\x97\xc0\xf4\x32\x47\x3c\xe9\xd7\x01\x82\xd8\x2a\xcf\x7d\x20\x77\xda\xe4\x62\x2b\x29\x0b\xe3\x19\x1a\xd3\x5e\x8c\x9a\x69\x07\x66\xce\x60\xa8\x6f\xc3\xec\xc5\x66\x32\xca\x17\x9a\xe6\xea\x63\x8b\xc6\xa4\x51\x73\xb1\x6b\x95\xfa\x71\xb6\x0f\x5c\x8a\x02\x84\xc3\x93\x0d\x6c\x9e\x40\x3f\xa0\x39\x1b\xe1\x1c\xd2\x74\xdb\x11\x34\x82\x87\x0d\xfc\xd9\x2e\xfc\x85\x0f\xb1\x36\x5b\x26\x17\xc9\x56\xa9\x1f\x48\xb7\xc9\x77\xd7\xde\x58\x27\xb2\x4f\x2a\x8f\x6d\xa6\xa3\x59\x1c\x03\x2e\xe3\xd7\xed\x07\xf3\x39\x70\x69\x35\xcd\x5a\xe8\xfc\x6c\x63\xd0\x96\x98\x3b\xf1\x80\x10\x57\x8e\x7a\xae\xb3\x42\xe5\xed\x9c\x7a\xe0\x96\xb0\x55\xed\x71\xe8\x82\x3a\x10\x05\x4a\x74\x38\xa8\x90\x49\x04\xc9\x6b\xd8\x78\x91\x35\x6b\xbd\x83\xd5\x2f\x1f\x97\x50\x62\x1c\xa9\x2e\x3b\xe0\xf7\xb7\xec\x21\x54\x0f\xf0\xb1\x33\x9e\x06\x13\x19\x91\x5c\xef\x64\x65\x0f\x8c\x4b\x39\x4d\x5f\x24\x64\xbe\x6e\x9d\xae\xf2\x03\x16\x8c\xbb\xc1\xc3\x16\x94\x6a\xb7\xd6\xcb\x08\x0d\x4c\xee\x20\x6c\xc7\xc0\xef\x6d\x6a\x75\x0f\x33\x28\x94\xe8\xf5\xe1\x46\x50\xb7\x30\x6e\xd6\x3f\xdd\xcd\x20\xa1\xb4\x30\x5a\x89\xff\xd4\x23\x5b\xae\xa9\x0b\x39\xf4\x63\x5b\x33\xab\xf6\x23\xf3\x5a\x6e\xd9\xcb\x59\xc7\xb2\x82\x3b\x5a\xd6\x7a\xe3\xa1\x1f\x1a\x7a\x14\x23\xd3\x4f\xf3\x74\x30\x03\xb5\x16\xd5\x72\xf4\x71\x46\x8b\x56\xe4\x06\x0b\x28\x73\x72\x32\x6d\xb4\x59\x81\xb9\x2e\xda\x74\xae\x59\x76\x44\xe9\xe3\x38\x74\xac\x36\x9b\x19\x40\x92\xeb\x4a\x16\x9e\xb0\xe4\xc6\x62\xbb\x06\x10\x9b\xeb\xc1\x68\xdb\xd5\x22\x4d\x47\x55\xa6\xf0\xb2\x9e\xbe\xb4\x55\x96\x5c\x18\xdb\x7f\x0e\x85\xee\x74\xe9\x67\x06\xf7\xce\x8b\xd8\x5c\x86\xeb\x41\x53\x7d\xb0\x00\x67\x2a\x9c\x84\xb9\xec\x62\xc0\x84\x91\x17\x64\x37\xed\xf2\x59\x81\x58\x32\x4a\x0f\x6e\x62\xb1\xf6\xac\x48\xe3\x98\x36\x10\x10\xb9\x75\x04\xf5\xd0\x68\x94\x49\xfd\x77\x2c\xdb\xf8\xce\xa1\x61\x97\x93\xf5\x6b\x13\xf0\x8b\xa5\xee\x27\x9f\x4b\xce\x51\x87\x28\x9d\x7d\xcc\xa8\xba\x58\xbd\xee\x7b\x22\x16\x76\x47\xca\x1a\xda\x31\x4d\x86\x0f\x68\x9e\xa6\xe3\x5b\xf6\xac\x5f\x2f\x8d\x6a\xc4\xe1\xf9\x34\x4c\xfc\x96\x09\xe7\x03\x2a\xb0\xe8\x1c\x4d\x3c\x55\x09\x1d\x61\x3e\xaf\x7a\x8c\x87\xb9\x49\x8d\xf3\x59\x9b\xf2\x80\x49\xb5\x2f\xcb\x03\xb7\x61\xa5\x24\x77\xfa\xef\xc1\x8b\xcd\xe5\x02\x12\xa9\xf7\x1d\x1f\x5e\xba\x6f\x90\xfd\x9d\xd7\xdf\x16\x10\x7f\x6a\x49\x2e\x76\x9c\x66\xa7\x3e\x55\xd6\xc1\x96\xd6\x68\x29\xeb\x1f\x5f\x62\xa7\xd1\x06\xa4\xde\xcf\x60\x5b\x39\x38\x53\x87\x09\x24\x8d\xd5\x5e\x4a\x1f\xfa\xe2\x2f\x63\xbe\x5f\x9f\xb4\x41\xe6\x8c\x40\x3b\xbd\x4a\x5b\x28\x39\x68\xeb\x66\x40\x5d\xd4\x57\x5a\x6b\x4a\x03\x16\x74\x3f\x68\x10\x8e\xbb\xca\x36\xbe\xfa\xd7\xfd\xfd\xcf\xec\xd3\x6a\xf3\xe5\xe6\xdd\x8a\x7d\x5e\x2f\xbf\x2c\x6f\x6e\x97\x6f\x6f\x57\x2f\x82\xd7\x04\x3c\x82\xc5\x1c\xea\x2b\x1a\x32\xb9\x44\x34\xd3\x56\xbd\x46\xa7\x31\xf0\x6a\x6a\x2c\xa2\x7c\xf3\x3d\x69\x38\xf9\x9f\x9f\x68\x92\xf6\x9d\xbc\x99\x98\xbd\x5d\x34\x62\x5f\xd7\xee\x23\x07\xf8\x89\xbb\xb2\x94\x6b\x4d\xe1\xf4\x13\x6a\xac\xce\xea\xa8\xa7\xcd\xf6\xf1\x4a\x32\x0b\x89\x31\x9b\x83\x72\xbd\x1f\xc9\xc0\xe9\x57\xb3\xb8\x49\x19\xf6\x71\xf2\xdf\x00\x00\x00\xff\xff\xdd\xf8\x0c\xad\x04\x15\x00\x00") func etcNginxLuaBalancerLuaBytes() ([]byte, error) { return bindataRead( @@ -158,7 +180,27 @@ func etcNginxLuaStickyLua() (*asset, error) { return a, nil } -var _etcNginxLuaTestBalancer_testLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xe4\xb6\x11\x7f\xdf\xbf\x62\xa0\x97\x48\x85\x2a\xdb\x39\x04\x08\x5c\x2c\x8a\x6b\x71\x6d\x0f\x08\xae\xc5\x35\x4d\x1f\x0e\x81\xc0\x95\x66\x77\xd9\xa5\x49\x85\xa4\xbc\x36\x8c\xfd\xdf\x0b\x92\x12\x45\x4a\xda\x0f\xa3\x71\xd2\xbb\x38\xc0\xc5\x2b\x6a\xbe\x38\x1f\xbf\xa1\x46\x62\xa2\x22\x0c\xaa\x7d\x0d\x4b\xa0\xa2\x68\x44\x83\x3c\x4d\x9a\x7d\x9d\x64\xb7\x12\x49\x9d\x7e\xf5\x3b\xf6\x55\xb6\x68\x48\xb5\x23\x1b\x2c\x1a\xa2\xb7\xb0\xb4\xf4\x45\x01\xc9\x95\x14\x42\xaf\xd5\x15\xea\xea\x8a\x6f\x28\x7f\xb8\x62\x2d\xb9\xfa\x63\xc1\x5a\xf2\x87\xc4\x50\x84\x7c\x8b\x85\x53\xb6\x22\x8c\xf0\x0a\x65\x0e\x77\xa2\xda\x95\xd5\x7f\x94\xe0\xfd\x6f\xc1\xd7\x74\xd3\x5d\x28\x4d\xab\xdd\x63\x77\xb1\x22\xd5\x0e\x79\xad\xba\x4b\x26\xdb\x8a\x54\x5b\xcc\x81\x89\x6a\xd7\x2f\x9a\x9f\x0b\x70\x17\x7c\xf3\x50\x8e\x34\xe1\xfe\x8e\xf4\x46\xac\x5b\x5e\x69\x2a\x38\xd4\xb4\xd2\xe5\x06\x39\x4a\xa2\x85\x4c\xef\x09\x53\xd9\x02\xc0\x51\x95\xe6\x2e\x2c\xe1\x09\xca\x92\xf2\x1a\x1f\xcc\xef\x05\xd8\xff\x36\x68\xee\xf4\x72\x52\x85\x6c\x9d\xc3\x0e\x1f\xb3\xee\x3e\x80\x44\xdd\x4a\x0e\xe6\x4e\x51\x1a\xc1\x9f\x76\xf8\xf8\x63\x77\x1b\x79\x9d\x77\x3f\xd5\x11\x49\x39\xdc\x13\x36\x88\x83\xb1\x24\x58\x1a\x82\xe0\x7e\xa7\x50\xcb\x16\x73\xe0\x94\xe5\xb0\x26\x4c\xe1\x54\x63\x8d\x0c\x35\x5e\x6e\xfe\xad\x42\x9d\x5a\x8b\x38\xf5\x16\x05\xf2\xd6\xac\x55\xdb\x92\x30\x36\x16\x39\x96\x36\x65\xb5\xdb\x71\x3b\x51\x76\xe9\xb0\x70\xff\xbc\x7a\x7d\x87\x9a\x68\xb2\x62\x98\x3e\x85\xd4\x87\xdc\xc5\x27\x5b\x20\xaf\x27\x71\xed\x12\x26\x08\x2d\x27\x77\x98\x1b\xd5\x8d\xa0\x5c\xab\x1c\xd8\xaa\x24\x6c\x93\x0d\xba\x5c\x68\x0d\x1d\x2c\xed\x1f\x67\xa4\x67\x81\x65\xc0\x6e\x6f\x7d\x4a\x98\x20\xf5\xef\xbb\x44\x4b\x4c\x48\x9c\xd4\xdc\xee\x22\x30\xac\xc6\x35\x69\x99\x2e\x43\x61\x46\xdf\x13\xa9\x6b\x89\xca\x5c\x26\xd7\xd7\xd7\x45\xf7\x2f\xc9\xa1\x11\xd2\xe4\x45\xf2\xed\xf5\xb7\xd7\xc9\x21\x3f\x4a\x7b\x13\xd3\xde\x18\xda\xc3\x58\x6d\x5f\x3f\x9d\x56\x5b\x0f\x52\xf6\xcb\xb0\x9c\xf1\x57\x32\x22\x4a\xf2\xe9\x26\x72\x48\xa4\x68\x79\x5d\x4a\xb1\xa2\x3c\xc9\x7c\xf9\x99\x5a\xbb\x40\x7a\x48\x76\x44\xbe\x21\x31\x82\x0f\x93\x10\x53\x4e\x75\x9a\xf5\x1a\x2d\x8e\x98\xed\x1d\xfc\x8a\x45\x93\x68\xc9\x61\x4a\xb4\x14\x02\x45\x74\xc3\x28\x8e\x16\x02\x1f\x8e\x50\x63\xec\x65\x6f\x54\x8f\x53\x1e\x37\x38\xee\x83\x1a\x81\x34\xeb\x73\x2f\xd6\x60\x12\xc7\x95\x81\x01\x35\xcf\xdd\x5d\xf8\x12\xf3\xdc\xbe\xa0\x5a\x7e\x8a\xa6\x93\xe9\xd1\xf2\xbc\x59\x96\x6a\xe0\x2c\xff\x5a\xf0\xcd\x80\x82\x6a\x4b\x24\xd6\x01\x28\x06\xc9\x50\x2a\x4d\x2c\xc6\x8c\x7c\xf5\x74\xc8\xfa\xda\xef\xdd\xde\xbb\xfa\x42\xca\x92\x11\xa5\x4b\x2d\xda\x6a\x8b\x75\x49\xf4\x09\xce\x83\xfb\x73\x4f\x5c\x68\xf3\xce\x8b\x9b\xd3\x4e\xfc\xf7\xdb\x8f\x1f\x4c\x35\xed\x89\xe4\x89\x5b\x7a\xff\xe1\x2f\x7f\x37\x4b\x94\xaf\x45\xb7\xf4\xee\xe3\x47\xb3\x82\x52\x76\x0b\x7f\xfb\xfe\xfb\x7f\x94\xff\x7c\xf7\xf1\x87\xf7\x7f\x7e\x57\xfe\xeb\xc3\xdb\x1f\xde\xbe\xff\xee\xed\x9f\xbe\x7b\x07\x4b\xf8\xe6\xfa\x4d\xe7\xc1\xbe\x23\x1a\xdc\xc0\xfa\x53\xc2\x37\x0f\x45\xbf\x3b\x8b\x1f\x93\xa4\x9c\x61\x92\xa8\xf4\x63\xd1\x27\xd7\xc0\xd6\xaf\xcc\xb0\xd8\xf2\x18\x28\xed\xe5\x71\xc9\xa2\xda\x05\x52\x45\xb5\x9b\x21\xed\xed\x2b\x6c\x85\x7a\x6a\xdb\x65\x67\xf4\xdb\x62\x6c\x25\x31\x3e\x0f\xec\xb0\xcb\x33\xf4\xae\x52\x07\x42\x77\xbd\x18\x52\x01\x96\x20\xf1\xa7\x96\x4a\x4c\xbd\x29\x49\xd7\x0b\x6a\x54\x95\xa4\x2b\x4c\x93\x4f\x3e\x73\x34\x2a\xfd\x63\x92\x07\x71\x5f\xd8\xd6\xdb\x36\x69\xb4\x04\x03\xae\x20\xaf\xb3\xc5\x02\x40\x23\x91\xb5\xd8\xf3\x31\xa1\xc3\xa3\xce\x72\x0b\xad\x71\x38\x0d\x3a\xc6\x91\xca\xbb\x38\x0c\x77\x8c\xa7\x73\x18\x39\x33\x1f\xb9\x2b\x87\xde\x1f\x07\xab\x78\x2d\x24\xd0\xbc\xd7\x5c\xda\x8e\x45\x39\xd0\x86\x50\xa9\xd2\xde\xa0\x0c\x6a\xd1\xd5\xcf\xc8\xbb\x21\xa3\xf1\x30\xa7\xac\xef\x74\xc1\xb6\x07\x2f\x7a\xeb\x2a\xc2\x58\x9a\xdd\x8e\xdd\x78\xc4\x91\x33\x08\x5b\x28\xd4\xe5\x9d\x90\x58\x6a\x49\xad\xcf\x66\x40\xc7\x99\x71\x9c\xbf\x6a\xa5\x44\xae\xcb\x06\x6d\x1a\x9c\x97\x60\x9c\x5a\x90\xb5\x46\xd9\x0b\x3a\xcd\xd6\x7b\x00\x60\x85\x6b\x63\x2c\x92\x6a\x3b\xdd\x9d\x43\xc3\x62\x83\xba\x6c\xb6\x44\x61\xe0\x49\x7f\xd3\x41\x64\x31\x01\xc6\xa2\x3f\xca\x3c\x1d\x62\x86\x1e\xab\x42\xfb\xfb\xbe\xe0\x99\xc6\x0d\x27\x24\x76\x99\x52\x50\x35\x74\x3b\x6f\xf9\xca\x6f\xd5\x9e\x0c\x67\x36\x3c\x04\xdd\x6e\x69\xc9\xc4\x66\x1a\xed\x33\x7e\x99\xf5\xcc\x14\x6f\x13\x23\x3b\x08\xd5\x60\x04\x00\xd5\x69\xe2\x4e\x52\x4b\x13\xbc\x1c\x2c\xf0\xc7\x21\xdc\x13\x05\x26\x21\xb1\x9e\xb3\x30\x74\x68\xd1\x48\xf1\xf0\x58\xb6\x8d\xd2\x12\xc9\x5d\xd9\x1d\xf1\x66\xce\x20\x0b\xcf\xed\x8a\x7b\xaa\xb6\x54\x8d\x71\xa9\x6a\x1e\x0b\xc1\x53\x2f\x21\x87\x24\x22\x4b\xb2\x41\x14\x51\x0a\xa5\x2e\xb6\x44\x95\x5c\x94\x28\xa5\x90\x2a\x8d\x6a\x2a\x1b\xd3\xaa\xe6\x31\x9d\xd7\x9d\x15\x7b\xa2\x4a\xb7\xef\x34\x3b\xed\xba\x20\xeb\x8e\x7a\x90\x0b\xfd\x73\x78\x31\x38\x27\x7e\x2e\x3e\xe4\x42\xcf\xfa\xf1\x74\x41\x04\xe8\xfe\x32\x55\xe1\x15\x9c\x2f\x8d\x28\xbe\x16\x0d\x4d\x44\x55\x5b\x55\xa8\xd4\xba\x65\xec\xd1\x00\xf3\x4b\xc5\x75\x38\xd4\xeb\x99\x80\x0e\x4f\xec\xc9\x06\x75\x92\x8d\x98\xe3\x3e\x30\xc3\x1f\x3f\xc0\x27\x31\xfd\xac\xb8\xb0\x2d\x5c\x26\x30\xe4\xf8\x19\x92\x6d\xe4\x90\xb0\x52\xcb\x3d\xd5\xdb\xf4\x8e\xe8\x6a\x6b\x90\xd9\x3d\xce\x66\xf9\xd4\xc9\xb3\x82\xa7\xce\x9a\xca\xbe\x39\xca\x39\xf6\xcb\x94\x77\xf4\xe4\xe9\x1e\x39\x03\x7f\xc4\x4d\x68\x83\xfa\xb6\x62\x48\x64\x90\x4d\xe7\x1a\xfd\x85\x0c\xa1\xa9\x9e\xe5\x35\x2c\xee\x21\xdf\x3d\xdd\x9f\x81\x7c\x87\xa3\x2f\x83\x05\x47\x3a\xe5\x70\xc4\x9a\x1e\xae\x82\x13\xc7\xdc\xf4\xe2\xe6\x66\x34\xbd\x78\x93\x1c\x2c\xec\xbd\x42\xcd\x0b\xe5\x74\x14\xc3\x5f\x37\xab\x5d\xf0\x5d\xd4\x8f\x65\xb5\x3b\xc2\x2e\xdd\x48\xd3\x25\x92\x02\xa5\x85\xc4\x3a\x98\xcb\x11\x5e\xff\x92\xed\xef\x19\xc7\x6c\x63\x78\xd0\xc7\x63\x5e\x13\xbc\x7e\x13\xb3\x67\x81\xd9\x81\xdf\xb8\x64\xbe\x7e\x2d\x99\xdf\x4a\x1b\xf0\x05\xf3\xf5\x65\x05\x53\x0b\x74\x07\xfc\x7e\x98\x3e\x2a\x1c\x3f\x71\x55\xa0\x85\x1b\xde\x81\x9b\xe4\x7e\xbe\x35\xc3\x29\x3b\xca\xac\x8e\x30\xaf\xa2\x09\xc0\x6b\x21\x7d\xf1\x85\x14\x1d\x73\xe7\x0b\x69\x4d\x28\x53\xb0\xdf\x22\x07\x2e\xfa\x24\x00\x7c\xa0\x4a\xab\x17\x2a\x8f\xc9\x98\xe7\xe9\xf0\x9a\x8c\x27\x92\x91\x98\x67\xed\x9f\x5a\xc2\x52\x3b\x69\xd3\x44\xb7\x2a\x87\x6f\xae\xdf\x7c\xfe\x69\xfb\xdc\xd9\x84\x01\x79\xca\xc1\x8d\x15\x98\xd8\x80\x90\x70\x6a\x52\x61\x32\xbc\x3f\x4e\x39\x5f\x9f\xcc\xe9\x33\x23\x0b\x2e\x1a\x4c\x22\xd4\x0d\xa2\x69\xc5\xc7\x91\x34\x9e\x6d\x95\x86\x15\x76\xa3\x27\x63\xbb\x1f\xec\x0b\x69\x76\x90\xc3\xaa\xd5\xc1\x8c\x0f\x28\xbf\x05\xab\x68\xde\x21\x27\xe7\xd6\x94\x53\x5d\xee\x85\xdc\xa1\x7c\xce\xf8\xba\xdb\xbd\xa6\x77\xee\xdd\xa0\xdf\x1e\xde\xa3\x8c\xba\x17\xe5\x1a\xe5\x3d\x61\x4e\xf2\x30\x65\x6d\x79\x95\x66\x81\x67\xa2\xb1\xae\x7d\x17\x50\xd4\x58\x89\x3a\x72\xec\x83\xe7\x7f\x78\xee\x48\xfa\x19\xe3\xe2\xb9\x34\x52\x8f\xbc\xf2\x54\xb3\x9e\xea\x4e\x19\xe6\x8c\x8d\xf5\x80\x8f\x86\x11\xa8\xea\x5f\xc9\x1c\x99\x25\x06\xaf\x7c\x6c\x4a\xf5\x9a\xca\x9a\x68\x32\x9b\x5a\x93\xf7\xd7\x27\x1a\xb4\x3a\x87\x89\xca\x62\xe2\x85\x88\x13\xa4\xcc\x49\x38\x51\x21\x9c\x1c\x2b\xdb\x33\xa3\xbb\xb6\xa9\x89\x46\xe5\xbb\x8c\xf5\xea\x4b\xb9\xf4\x69\xe2\xd4\x62\xfc\x39\xc0\x61\x7a\x82\x9a\xeb\x4d\x23\x90\x38\xfb\xaa\xe3\x9c\xde\xff\x31\xb0\x31\xb3\x94\xa5\xfb\xcc\x25\x66\x3d\x63\x6b\x0e\x89\xe3\x9a\xc8\xb3\x0f\xce\xee\x43\x97\x13\x02\xa3\x17\xd5\x39\x24\xfe\xcb\x98\x79\x79\x4c\x3f\x57\xe6\xf8\xe5\xf7\x48\xc7\x0b\x25\xb7\xa7\x01\xb8\xa0\x6d\x9e\x8b\x73\xe1\x3e\xc5\x19\x33\xce\x5a\x12\x85\xf1\x92\x9e\x7d\x91\xf2\xe3\xef\x0a\x7c\x34\x8e\x16\xf4\x94\x27\x8a\xe2\x73\x81\xc0\x25\xca\xff\x05\x02\x44\x1f\xed\xfc\xa2\x18\x10\x6a\x7e\x45\x81\x2f\x19\x05\xc2\x48\xff\x0a\x38\x30\x51\x7f\x31\x12\x9c\xd2\xf6\x2c\x68\xb8\x44\xd0\xec\xd1\xd6\xfe\xef\xbf\x01\x00\x00\xff\xff\xa3\x22\xb2\x79\xb1\x2b\x00\x00") +var _etcNginxLuaTestBalancerChash_testLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x4c\xcb\xb1\x6e\xc3\x20\x10\x00\xd0\x9d\xaf\x38\xb1\x18\xaa\x1a\xf6\x56\x56\x97\xee\x5e\xba\x55\x55\x75\xe1\xce\x36\x0a\x3a\x90\x81\x38\x9f\x1f\x39\x53\xf6\xf7\x52\x0e\x98\x20\x1c\x04\x13\xc4\xec\x4a\x2e\x2c\x46\x97\x83\xb4\xfd\xd8\x19\xc9\x0c\x6f\x69\xb0\xaa\x60\xb8\xe2\xca\xae\x60\xdb\x60\x7a\x7a\xe7\x40\xfb\x3d\xe7\xb6\x54\xcf\x2d\x78\x59\xa3\xdc\x7d\xea\xe8\xbf\x5c\xea\xf8\xa9\x4f\xf1\xfa\x94\x22\xae\x61\x8f\x17\x36\xfa\x37\x6c\x58\xb7\xff\xc6\xb5\xfd\xe9\x77\x58\xba\x84\x16\xb3\x18\xab\x00\xc6\x11\x7e\xe6\xef\xd9\x70\xba\x45\xe1\x85\x85\xa2\x05\x24\x82\x2e\xb1\xc1\x59\xaa\x62\x21\xab\x1e\x01\x00\x00\xff\xff\x01\xa7\xbb\x88\xbc\x00\x00\x00") + +func etcNginxLuaTestBalancerChash_testLuaBytes() ([]byte, error) { + return bindataRead( + _etcNginxLuaTestBalancerChash_testLua, + "etc/nginx/lua/test/balancer/chash_test.lua", + ) +} + +func etcNginxLuaTestBalancerChash_testLua() (*asset, error) { + bytes, err := etcNginxLuaTestBalancerChash_testLuaBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "etc/nginx/lua/test/balancer/chash_test.lua", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} + a := &asset{bytes: bytes, info: info} + return a, nil +} + +var _etcNginxLuaTestBalancer_testLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\xdd\x6f\xe4\xb6\x11\x7f\xdf\xbf\x62\xa0\x97\x48\x85\x2a\xdb\x39\x04\x08\x5c\x2c\x8a\x6b\x71\x6d\x0f\x08\xae\xc5\x35\x4d\x1f\x0e\x81\xc0\x95\x66\x77\xd9\xa5\x49\x85\xa4\xbc\x36\x8c\xfd\xdf\x0b\x92\x12\x45\x4a\xda\x0f\xa3\x71\xd2\xbb\x38\xc0\xc5\x2b\x6a\xbe\x38\x1f\xbf\xa1\x46\x62\xa2\x22\x0c\xaa\x7d\x0d\x4b\xa0\xa2\x68\x44\x83\x3c\x4d\x9a\x7d\x9d\x64\xb7\x12\x49\x9d\x7e\xf5\x3b\xf6\x55\xb6\x68\x48\xb5\x23\x1b\x2c\x1a\xa2\xb7\xb0\xb4\xf4\x45\x01\xc9\x95\x14\x42\xaf\xd5\x15\xea\xea\x8a\x6f\x28\x7f\xb8\x62\x2d\xb9\xfa\x63\xc1\x5a\xf2\x87\xc4\x50\x84\x7c\x8b\x85\x53\xb6\x22\x8c\xf0\x0a\x65\x0e\x77\xa2\xda\x95\xd5\x7f\x94\xe0\xfd\x6f\xc1\xd7\x74\xd3\x5d\x28\x4d\xab\xdd\x63\x77\xb1\x22\xd5\x0e\x79\xad\xba\x4b\x26\xdb\x8a\x54\x5b\xcc\x81\x89\x6a\xd7\x2f\x9a\x9f\x0b\x70\x17\x7c\xf3\x50\x8e\x34\xe1\xfe\x8e\xf4\x46\xac\x5b\x5e\x69\x2a\x38\xd4\xb4\xd2\xe5\x06\x39\x4a\xa2\x85\x4c\xef\x09\x53\xd9\x02\xc0\x51\x95\xe6\x2e\x2c\xe1\x09\xca\x92\xf2\x1a\x1f\xcc\xef\x05\xd8\xff\x36\x68\xee\xf4\x72\x52\x85\x6c\x9d\xc3\x0e\x1f\xb3\xee\x3e\x80\x44\xdd\x4a\x0e\xe6\x4e\x51\x1a\xc1\x9f\x76\xf8\xf8\x63\x77\x1b\x79\x9d\x77\x3f\xd5\x11\x49\x39\xdc\x13\x36\x88\x83\xb1\x24\x58\x1a\x82\xe0\x7e\xa7\x50\xcb\x16\x73\xe0\x94\xe5\xb0\x26\x4c\xe1\x54\x63\x8d\x0c\x35\x5e\x6e\xfe\xad\x42\x9d\x5a\x8b\x38\xf5\x16\x05\xf2\xd6\xac\x55\xdb\x92\x30\x36\x16\x39\x96\x36\x65\xb5\xdb\x71\x3b\x51\x76\xe9\xb0\x70\xff\xbc\x7a\x7d\x87\x9a\x68\xb2\x62\x98\x3e\x85\xd4\x87\xdc\xc5\x27\x5b\x20\xaf\x27\x71\xed\x12\x26\x08\x2d\x27\x77\x98\x1b\xd5\x8d\xa0\x5c\xab\x1c\xd8\xaa\x24\x6c\x93\x0d\xba\x5c\x68\x0d\x1d\x2c\xed\x1f\x67\xa4\x67\x81\x65\xc0\x6e\x6f\x7d\x4a\x98\x20\xf5\xef\xbb\x44\x4b\x4c\x48\x9c\xd4\xdc\xee\x22\x30\xac\xc6\x35\x69\x99\x2e\x43\x61\x46\xdf\x13\xa9\x6b\x89\xca\x5c\x26\xd7\xd7\xd7\x45\xf7\x2f\xc9\xa1\x11\xd2\xe4\x45\xf2\xed\xf5\xb7\xd7\xc9\x21\x3f\x4a\x7b\x13\xd3\xde\x18\xda\xc3\x58\x6d\x5f\x3f\x9d\x56\x5b\x0f\x52\xf6\xcb\xb0\x9c\xf1\x57\x32\x22\x4a\xf2\xe9\x26\x72\x48\xa4\x68\x79\x5d\x4a\xb1\xa2\x3c\xc9\x7c\xf9\x99\x5a\xbb\x40\x7a\x48\x76\x44\xbe\x21\x31\x82\x0f\x93\x10\x53\x4e\x75\x9a\xf5\x1a\x2d\x8e\x98\xed\x1d\xfc\x8a\x45\x93\x68\xc9\x61\x4a\xb4\x14\x02\x45\x74\xc3\x28\x8e\xe5\x6d\x89\xda\x46\x2b\x81\x57\x47\x38\x32\xf6\xbb\x37\xb3\x47\x2e\x8f\x24\x1c\xf7\x41\xd5\x40\x9a\xf5\xd9\x18\x6b\x30\xa9\xe4\x0a\xc3\xc0\x9c\xe7\xee\x2e\x7c\xd1\x79\x6e\x5f\x62\x2d\x3f\x45\xd3\xc9\xf4\xf8\x79\xde\x2c\x4b\x35\x70\x96\x7f\x2d\xf8\x66\xc0\x45\xb5\x25\x12\xeb\x00\x26\x83\xf4\x28\x95\x26\x16\x75\x46\xbe\x7a\x3a\x64\x3d\x1a\xf4\x81\xe8\x9d\x7f\x21\x65\xc9\x88\xd2\xa5\x16\x6d\xb5\xc5\xba\x24\xfa\x04\xe7\xc1\xfd\xb9\x27\x2e\xd8\x79\xe7\xc5\xcd\x69\x27\xfe\xfb\xed\xc7\x0f\xa6\xbe\xf6\x44\xf2\xc4\x2d\xbd\xff\xf0\x97\xbf\x9b\x25\xca\xd7\xa2\x5b\x7a\xf7\xf1\xa3\x59\x41\x29\xbb\x85\xbf\x7d\xff\xfd\x3f\xca\x7f\xbe\xfb\xf8\xc3\xfb\x3f\xbf\x2b\xff\xf5\xe1\xed\x0f\x6f\xdf\x7f\xf7\xf6\x4f\xdf\xbd\x83\x25\x7c\x73\xfd\xa6\xf3\x60\xdf\x23\x0d\x92\x60\xfd\x29\xe1\x9b\x87\xa2\xdf\x9d\x45\x94\x49\x9a\xce\x30\x49\x54\xfa\xb1\xe8\x93\x6b\x60\xeb\x57\x66\x58\x6c\xc1\x0c\x94\xf6\xf2\xb8\x64\x51\xed\x02\xa9\xa2\xda\xcd\x90\xf6\xf6\x15\xb6\x66\x3d\xb5\xed\xbb\x27\xa8\x6d\x5d\x05\x86\x98\xcb\x39\x7b\x6d\x39\xb7\x92\x98\x18\x05\xe4\x76\x79\x86\xde\xd5\xfa\x40\xe8\xae\x17\x43\xea\xc0\x12\x24\xfe\xd4\x52\x89\xa9\x37\x26\xe9\xba\x49\x8d\xaa\x92\x74\x85\x69\xf2\xc9\x67\x9a\x46\xa5\x7f\x4c\xf2\x20\x4f\x16\xb6\x79\xb7\x4d\x1a\x2d\xc1\x80\x4c\xc8\xeb\x6c\xb1\x00\xd0\x48\x64\x2d\xf6\x7c\x4c\xe8\x10\xad\xb3\xdc\x82\x73\x1c\x7e\x83\xaf\x71\x64\xf3\x2e\x6e\xc3\x1d\x13\x99\x1c\x46\xce\xcf\x47\xee\xca\xa1\xf7\xc7\xc1\x2a\x5e\x0b\x09\x34\xef\x35\x97\xb6\xe7\x51\x0e\xb4\x21\x54\xaa\xb4\x37\x28\x83\x5a\x74\xf5\x36\xf2\x6e\xc8\x68\x3c\xcc\x29\xeb\x7b\x65\xb0\xed\xc1\x8b\x43\xb0\x09\x63\x69\x76\x3b\x76\xe3\x11\x47\xce\x60\x74\xa1\x50\x97\x77\x42\x62\xa9\x25\xb5\x3e\x9b\x01\x29\x67\xc6\x71\xfe\xaa\x95\x12\xb9\x2e\x1b\xb4\x69\x70\x5e\x82\x71\x6a\x41\xd6\x1a\x65\x2f\xe8\x34\x5b\xef\x01\x80\x15\xae\x8d\xb1\x48\xaa\xed\x74\x77\x0e\x3d\x8b\x0d\xea\xb2\xd9\x12\x85\x81\x27\xfd\x4d\x07\xa9\xc5\x04\x48\x8b\xfe\x30\xf4\x74\x88\x19\x7a\x6c\x0b\xed\xef\xfb\x88\x67\x1a\x37\xa8\x90\xd8\x65\x4a\x41\xd5\xd0\x2f\xbd\xe5\x2b\xbf\x55\x7b\xb6\x9c\xd9\xf0\x10\x74\xbb\xa5\x25\x13\x9b\x69\xb4\xcf\xf8\x65\xd6\x33\x53\x7c\x4e\x8c\xec\x20\x54\x83\x11\x00\x54\xa7\x89\x3b\x8b\x2d\x4d\xf0\x72\xb0\x8d\x22\x0e\xe1\x9e\x28\x30\x09\x89\xf5\x9c\x85\xa1\x43\x8b\x46\x8a\x87\xc7\xb2\x6d\x94\x96\x48\xee\xca\xee\x90\x38\x73\x8a\x59\x78\x6e\x57\xdc\x53\xb5\xa5\x6a\x8c\x4b\x55\xf3\x58\x08\x9e\x7a\x09\x39\x24\x11\x59\x92\x0d\xa2\x88\x52\x28\x75\xb1\x25\xaa\xe4\xa2\x44\x29\x85\x54\x69\x54\x53\xd9\x98\x56\x35\x8f\xe9\xbc\xee\xac\xd8\x13\x55\xba\x7d\xa7\xd9\x69\xd7\x05\x59\x77\xd4\x83\x5c\xe8\x9f\xc3\x8b\xc1\x49\xf3\x73\xf1\x21\x17\x7a\xd6\x8f\xa7\x0b\x22\x40\xf7\x97\xa9\x0a\xaf\xe0\x7c\x69\x44\xf1\xb5\x68\x68\x22\xaa\xda\xaa\x42\xa5\xd6\x2d\x63\x8f\x06\x98\x5f\x2a\xae\xc3\x63\x81\x9e\x09\xe8\xf0\xcc\x9f\x6c\x50\x27\xd9\x88\x39\xee\x03\x33\xfc\xf1\x08\x20\x89\xe9\x67\xc5\x85\x6d\xe1\x32\x81\x21\xc7\xcf\x90\x6c\x23\x87\x84\x95\x5a\xee\xa9\xde\xa6\x77\x44\x57\x5b\x83\xcc\xee\x81\x38\xcb\xa7\x4e\x9e\x15\x3c\x75\xd6\x54\xf6\xcd\x51\xce\xb1\x5f\xa6\xbc\xa3\x67\x57\xf7\xd0\x1a\xf8\x23\x6e\x42\x1b\xd4\xb7\x15\x43\x22\x83\x6c\x3a\xd7\xe8\x2f\x64\x08\x4d\xf5\x2c\xaf\x61\x71\x63\x02\x37\x1f\x38\x03\xf9\x0e\x47\x5f\x06\x0b\x8e\x74\xca\xe1\x88\x35\x3d\x5c\x05\x27\x8e\xb9\xf9\xc7\xcd\xcd\x68\xfe\xf1\x26\x39\x58\xd8\x7b\x85\x9a\x17\xca\xe9\x28\x86\xbf\x6e\x56\xbb\xe0\xbb\xa8\x1f\xcb\x6a\x77\x84\x5d\xba\xa1\xa8\x4b\x24\x05\x4a\x0b\x89\x75\x30\xd9\x23\xbc\xfe\x25\xdb\xdf\x33\x8e\xd9\xc6\xf0\xa0\x8f\xc7\xbc\x26\x78\xfd\x26\x66\xcf\x02\xb3\x23\xc3\x71\xc9\x7c\xfd\x5a\x32\xbf\x95\x36\xe0\x0b\xe6\xeb\xcb\x0a\xa6\x16\xe8\x0e\xf8\xfd\x38\x7e\x54\x38\x7e\x66\xab\x40\x0b\x37\xec\x03\x37\x0b\xfe\x7c\x6b\x86\x53\x76\x94\x59\x1d\x61\x5e\x45\x13\x80\xd7\x42\xfa\xe2\x0b\x29\x3a\xe6\xce\x17\xd2\x9a\x50\xa6\x60\xbf\x45\x0e\x5c\xf4\x49\x00\xf8\x40\x95\x56\x2f\x54\x1e\x93\x31\xcf\xd3\xe1\x35\x19\x4f\x24\x23\x31\xcf\xda\x3f\xb5\x84\xa5\x76\xd2\xa6\x89\x6e\x55\x0e\xdf\x5c\xbf\xf9\xfc\xd3\xf6\xb9\xb3\x09\x03\xf2\x94\x83\x1b\x2b\x30\xb1\x01\x21\xe1\xd4\xa4\xc2\x64\x78\x7f\x9c\x72\xbe\x3e\x99\xd3\x67\x46\x16\x5c\x34\x98\x44\xa8\x1b\x44\xd3\x8a\x8f\x23\x69\x3c\xdb\x2a\x0d\x2b\xec\x46\x4f\xc6\x76\x3f\xd8\x17\xd2\xec\x20\x87\x55\xab\x83\x19\x1f\x50\x7e\x0b\x56\xd1\xbc\x43\x4e\xce\xad\x29\xa7\xba\xdc\x0b\xb9\x43\xf9\x9c\xf1\x75\xb7\x7b\x4d\xef\xdc\xdb\x45\xbf\x3d\xbc\x47\x19\x75\x2f\xca\x35\xca\x7b\xc2\x9c\xe4\x61\xca\xda\xf2\x2a\xcd\x02\xcf\x44\x63\x5d\xfb\x2e\xa0\xa8\xb1\x12\x75\xe4\xd8\x07\xcf\xff\xf0\xdc\x91\xf4\x33\xc6\xc5\x73\x69\xa4\x1e\x79\xe5\xa9\x66\x3d\xd5\x9d\x32\xcc\x19\x1b\xeb\x01\x1f\x0d\x23\x50\xd5\xbf\x92\x39\x32\x4b\x0c\x5e\xf9\xd8\x94\xea\x35\x95\x35\xd1\x64\x36\xb5\x26\x6f\xc0\x4f\x34\x68\x75\x0e\x13\x95\xc5\xc4\x0b\x11\x27\x48\x99\x93\x70\xa2\x42\x38\x39\x56\xb6\x67\x46\x77\x6d\x53\x13\x8d\xca\x77\x19\xeb\xd5\x97\x72\xe9\xd3\xc4\xa9\xc5\xf8\x83\x82\xc3\xf4\x04\x35\xd7\x9b\x46\x20\x71\xf6\x55\xc7\x39\xbd\xff\x63\x60\x63\x66\x29\x4b\xf7\xa1\x4c\xcc\x7a\xc6\xd6\x1c\x12\xc7\x35\x91\x67\x1f\x9c\xdd\xa7\x32\x27\x04\x46\x2f\xb6\x73\x48\xfc\xb7\x35\xf3\xf2\x98\x7e\xae\xcc\xf1\xcb\xf2\x91\x8e\x17\x4a\x6e\x4f\x03\x70\x41\xdb\x3c\x17\xe7\xc2\x7d\xcc\x33\x66\x9c\xb5\x24\x0a\xe3\x25\x3d\xfb\x22\xe5\xc7\xdf\x15\xf8\x68\x1c\x2d\xe8\x29\x4f\x14\xc5\xe7\x02\x81\x4b\x94\xff\x0b\x04\x88\x3e\xfb\xf9\x45\x31\x20\xd4\xfc\x8a\x02\x5f\x32\x0a\x84\x91\xfe\x15\x70\x60\xa2\xfe\x62\x24\x38\xa5\xed\x59\xd0\x70\x89\xa0\xd9\xa3\xad\xfd\xdf\x7f\x03\x00\x00\xff\xff\x3f\x47\xc5\x71\xf3\x2b\x00\x00") func etcNginxLuaTestBalancer_testLuaBytes() ([]byte, error) { return bindataRead( @@ -198,7 +240,7 @@ func etcNginxLuaTestUpSh() (*asset, error) { return a, nil } -var _etcNginxLuaUtilLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x55\x4b\x6f\xa4\x46\x10\xbe\xf3\x2b\x4a\xb6\xa2\xb5\xb5\x63\x5e\x33\x5e\xc7\x48\x73\xb0\x36\x91\x72\x88\x4f\x59\xed\x65\xe4\xa0\x1e\x28\x98\xce\x34\xdd\xa4\xbb\xc0\xb6\xf2\xf8\xed\x51\x35\x30\x30\x1b\x6f\x72\xd8\x39\x0c\x50\x7c\xf5\xd5\xeb\xeb\x42\x99\x42\x28\xc8\x1f\x61\x0b\x7f\xfc\x15\x0c\x4f\x8e\xac\xd4\x75\xae\x50\xc3\x76\x7c\x08\x15\xea\x20\xb8\xb9\x01\x3a\x48\x07\xb2\x69\x15\x36\xa8\x49\x90\x34\x1a\xa4\x03\x12\x47\xd4\x50\x59\xd3\x30\xe8\x40\xd4\xba\x2c\x8a\x9e\x71\x1f\x0a\x5b\x1c\x64\x8f\xa1\xb1\x35\x3f\x47\x69\x9c\xac\x93\x34\xbd\x8d\xef\xe2\xcd\x7a\x13\x31\x34\x8b\x22\xa7\x65\xdb\x22\xb9\x50\x75\xa2\x30\xe5\x00\x9f\x8c\xd1\x0f\x88\x6d\xfe\xd1\x34\xad\xb0\xd2\x19\x9d\x9b\x2a\xff\xf4\x6c\xf2\xcf\x42\x75\xe8\xf2\x35\x87\x14\xba\x84\xc6\x94\xb2\x92\x58\x42\x65\x2c\x74\x0e\x41\xea\x21\xdf\xd6\x9a\xdf\xb0\xa0\xb1\xbc\xaa\xd3\x85\xcf\xbb\x64\xda\xc2\xd3\xe2\x15\x25\x2b\xa0\x74\x05\xb2\xd6\xc6\x62\xde\xd0\x75\x00\x30\x38\xd0\x6b\x02\x5b\xa0\xd7\x96\x51\x4b\x73\x7a\x32\xa7\x6c\x96\x95\x87\xfe\xbd\xf5\xaf\xe8\x80\x1a\x2c\x52\x67\x35\x54\x42\x39\x04\xd4\x65\x00\x70\x73\x03\xda\xe8\x1b\x12\x7b\x85\xde\xdb\x41\x21\x34\xec\x11\x4a\x69\xb1\x20\xf5\x0a\x63\x4e\xe5\x19\xe7\x3b\xef\xf1\xce\x57\xca\xfc\x0b\xd3\x32\x14\x25\xb0\xdd\x02\xa5\x73\x34\xe1\xe0\x19\x95\xe2\xab\xc7\x3b\x78\x3e\xc8\xe2\x00\x07\xd1\x23\xbb\x42\x83\x24\x1a\xa4\x83\x29\x21\xcf\xf1\xf7\x53\x81\x0d\xc1\x16\x6a\x24\x7e\xef\x3d\xc7\xf2\x65\x05\xda\xd0\xdc\xa9\xa1\xf9\xd3\x25\x64\x8e\xff\x4a\x89\xa7\x73\x4c\x56\x7d\xc2\xf3\x69\x85\xb4\x8e\x79\xa1\x34\x01\xc0\x14\xba\xf7\xad\x4d\x77\xc7\xe4\xc9\x5b\x65\xe5\x4d\x5b\xd0\x52\x81\xb1\x3e\xfe\xd9\xf8\xfa\x64\xd5\xa7\xd7\x5f\x6d\xfa\x22\x72\xba\xea\xd3\x45\xe4\xf4\xcb\xc8\x7e\xd6\xc9\xee\x98\xce\x91\x93\x6f\x8e\x3c\x75\xc2\x76\x18\xb0\x25\x7f\x0c\x97\x24\xb0\x3d\xe3\x0c\x82\x93\x46\xf3\xc7\x50\xba\x7c\xaf\x84\x3e\x5e\x39\xb2\xd7\x33\x97\x23\xbb\x48\x6b\x3e\xb3\x1e\xc6\x6f\x62\x1f\x69\x3a\x8f\x59\x14\xe9\x5a\xea\x17\x7f\xb2\x50\x47\xa5\x29\x9c\x3f\x7d\x91\xae\x5f\x72\xbe\xc9\xbb\xd6\x91\x45\xd1\xe4\x8d\x29\x3b\x85\xe1\x81\x1a\x75\x89\x2f\x82\x4f\x3b\xd3\x7c\x7c\xf8\xfc\xe3\xc3\xa7\x0c\x3c\x0f\x9f\xfa\x5a\xf6\x52\xd7\x60\x3a\x82\x0c\xa4\x76\x84\xa2\x04\x53\xc1\x0a\x9c\xf1\xca\xe2\x20\xc0\xf5\x3d\x5b\xa3\x6b\xe6\x48\xd2\xbb\x30\x0e\xe3\x30\xc9\xd2\x0f\xc9\xed\x1d\x64\xff\xb2\xac\x40\xd7\x2f\x61\x2f\x6c\x78\xca\x47\x94\xa5\x65\xe7\x34\x8e\x21\xf3\xff\x6f\x80\x1c\x09\xea\x1c\xc3\xe2\xd0\xe3\xf8\xf2\x06\xce\xa2\x6b\x8d\x76\x98\x93\x6c\xf0\xac\xd1\xae\x55\x92\xe6\x2e\xf4\xc2\x5e\xf5\xc2\x2e\x14\xdf\x0b\xeb\xe7\xec\x85\x31\x8e\x41\x4b\xb5\xe2\xbf\xd3\xa8\xc7\xe5\x30\x2c\xd4\x41\x73\x3d\xeb\xad\x17\x36\xab\x1b\x41\xc5\xe1\xea\x62\xf7\xeb\x77\xee\xcf\xd5\xd3\xfb\x8b\x93\xf8\x58\x66\x7c\xa4\x2f\xb2\x8b\x39\x04\x00\xed\x2e\xe9\x7d\xf2\x04\x5b\xe8\xbd\xe5\x2d\x4d\x0d\x63\x5e\x16\x52\x23\xe5\x95\xb4\x8e\xf2\x9e\x57\xe4\x54\xc5\x9c\xd9\xd7\x8b\x65\x2d\xf9\xbc\x65\x05\x97\xe4\x65\x74\x26\x6d\x96\xdb\x79\xf8\x5d\xf2\x74\x12\xda\xff\x7e\x1d\xb2\xe5\xe7\xa1\x96\x74\xe8\xf6\x61\x61\x9a\x48\x75\xa2\xea\xf4\x74\xd9\x2b\xb3\x8f\x1a\xe1\x08\x6d\x54\x75\x9a\x3f\x0a\x97\x3f\xaf\xfd\x9e\xff\xe5\xa7\x87\x0c\xe2\x4d\x71\x7f\x5f\xdd\x17\xeb\xfb\x35\xde\x6e\xc4\x87\x78\x23\xca\x12\x37\xfb\xf4\x76\x7f\x77\xbf\xa9\x36\xdf\x27\xf1\x06\xe3\x32\x7e\x6b\xe1\x17\xa6\x7d\xbd\x32\x56\xd6\x73\x47\xf8\x29\xe7\x4d\x3c\xad\xf3\xf3\xd7\xec\x31\x34\x64\x01\x3c\x5f\xbe\xe3\xb4\x18\x39\xcd\x9d\x7f\x3c\x7b\xef\x73\xc4\xd7\xd5\x70\xe7\x07\xc2\x72\xd0\xf8\x42\x83\xcd\xcb\x67\xd2\xc1\x4c\xb4\x3b\xcb\x96\x29\xae\x9f\xc6\x3d\x31\x5b\x3d\xdd\xf5\xe8\x39\x8a\x43\x39\x3c\xcf\x87\x91\x5f\xaa\xc6\x17\xb5\xd8\x44\x23\x74\xba\x0d\x82\x11\x97\x3f\x06\xff\x04\x00\x00\xff\xff\xc6\xa6\x46\xf4\x23\x08\x00\x00") +var _etcNginxLuaUtilLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x56\x4d\x6f\xe3\x36\x10\xbd\xfb\x57\x0c\x12\x14\xeb\x60\x65\x7d\xd9\xd9\x34\x02\x7c\x08\xb6\x05\x7a\x68\x4e\x5d\xec\xc5\x48\x05\x5a\x1a\xc9\xac\x29\x52\x25\x47\x4a\x82\x7e\xfc\xf6\x62\x28\xc9\x96\x77\xb3\x45\x81\x2e\xb0\x96\x34\x7c\x7c\x33\x9c\x79\x33\x8c\x32\x85\x50\x90\x3f\xc2\x16\xfe\xf8\x6b\x31\x7c\x39\xb2\x52\xd7\xb9\x42\x0d\xdb\xf1\x23\x54\xa8\x17\x8b\xaa\xd3\x05\x49\xa3\x21\x7f\x0c\x5d\xab\x24\xe5\xad\x90\x76\xc9\x3f\x01\x38\x6c\xd1\x0a\x32\xf6\x66\x01\x30\x10\x49\xd8\x02\x2f\x66\x95\xd4\xe5\xf2\x02\x20\x2b\x5e\xdd\x82\x96\x0a\xe8\x80\x7a\x01\x00\x60\x91\x3a\xab\x61\xe0\xd3\x52\x2d\x00\x50\x39\xf4\x6b\x03\xa3\x16\x0d\x4e\xa4\xae\xdb\x2f\x93\x00\x24\xac\x20\xb9\x99\x61\x7a\xa1\xba\x0b\x90\x84\xf7\x90\x04\xb0\x1a\x51\xa3\x17\xa6\x0a\x06\x30\xfb\xd1\xe5\x82\xff\x2f\x56\x2b\xa0\x83\x74\x20\x9b\x56\x61\x83\x9a\x84\x3f\xb1\x74\x40\xe2\x88\x1a\x2a\x6b\x1a\x06\x1d\x88\x5a\x97\x45\xd1\x33\xee\x43\x61\x8b\x83\xec\x31\x34\xb6\xe6\xef\x28\x8d\x93\x75\x92\xa6\xb7\xf1\x5d\xbc\x59\x6f\x22\x86\x66\x51\xe4\xb4\x6c\x5b\x24\x17\xaa\x4e\x14\xa6\x1c\xe0\x93\x31\xfa\x01\xb1\xcd\x3f\x9a\xa6\x15\x56\x3a\xa3\x73\x53\xe5\x9f\x9e\x4d\xfe\x99\xe3\x73\xf9\x9a\x5d\x0a\x5d\x42\x63\x4a\x59\x49\x2c\xa1\x32\x16\x3a\x87\x20\xf5\x10\x6f\x6b\xcd\x6f\x58\xd0\x58\xc2\x53\xa5\x4a\xa6\x2d\x3c\x2d\x2e\x29\x09\x80\xd2\x00\x64\xad\x8d\xc5\xbc\xa1\x73\xa9\xe8\x35\x81\x2d\xd0\x6b\xcb\xa8\xb9\x39\x3d\x99\xd3\xb1\x6e\x0c\xfd\x7b\xeb\x97\xb8\x72\x53\x3e\x2b\xa1\x1c\xfa\x3c\x02\xac\x56\xa0\x8d\x5e\x91\xd8\x2b\xf4\xbb\x1d\x14\x42\xc3\x1e\xa1\x94\x16\x0b\x52\xaf\x30\xc6\x54\x5e\x70\xbe\xf3\x3b\xde\xf9\x93\x32\xff\xcc\x34\x77\x45\x09\x4b\x87\xd2\xb3\x37\xe1\xe0\x19\x95\xe2\xa7\xc7\x3b\x78\x3e\xc8\xe2\x00\x07\xd1\x23\x6f\x85\x06\x49\x34\x48\x07\x53\x42\x9e\xe3\xef\xa7\x03\x36\x04\x5b\xa8\x91\x78\xdd\xef\x1c\x8f\x2f\x2b\xd0\x86\xce\x99\x1a\x92\x3f\x3d\x42\xe6\xf8\xb7\x90\xb8\x3a\xc7\x24\xe8\x13\xae\x0f\x0b\xd1\x31\x2f\x94\x66\xae\x53\x9f\xda\x74\x77\x4c\x9e\xbc\x55\x56\xde\x34\xf4\x84\xb1\xde\xff\x45\xf9\xfa\x24\xe8\xd3\x9b\x6f\x26\x7d\xe6\x39\x0d\xfa\x74\xe6\x39\xfd\xd2\xb3\xaf\x75\xb2\x3b\xa6\x67\xcf\xc9\xff\xf6\x3c\x65\xc2\x76\xe8\x5b\x29\x7f\x0c\xe7\x24\xb0\xbd\xe0\xbc\x9c\x26\xd2\xe5\x7b\x25\xf4\x71\xe9\xc8\x8f\x87\x91\xcb\x91\x9d\x85\x75\x9e\x4b\x1e\xc6\x2b\xf1\xa9\x69\xc7\x26\xd3\xb5\xd4\x2f\xbe\xb3\x50\x47\xa5\x29\x9c\xef\xbe\x48\xd7\x2f\x39\xbf\xe4\x5d\xeb\xc8\xa2\x68\xf2\xc6\x94\x9d\xc2\xf0\x40\x8d\xba\xc6\x17\xc1\xdd\xce\x34\x1f\x1f\x3e\xff\xf8\xf0\x29\x03\xcf\xc3\x5d\x5f\xcb\x5e\xea\x1a\x4c\x47\x90\x81\xd4\x8e\x50\x94\x60\x2a\x08\xc0\x19\xaf\x2c\x76\x02\x7c\xbe\x67\x6b\x74\xcd\x1c\x49\x7a\x17\xc6\x61\x1c\x26\x59\xfa\x21\xb9\xbd\x83\xec\x2b\x4b\x00\xba\x7e\x09\x7b\x61\xc3\x53\x3c\xa2\x2c\x2d\x6f\x4e\xe3\x18\x32\xff\xfb\x06\xc8\x91\xa0\xce\x31\x2c\x0e\x3d\x8e\x1f\x6f\xe0\x2c\xba\xd6\x68\x87\x39\xc9\x06\xdf\x18\xdb\x27\x60\x2f\xec\xb2\x17\x76\xa6\xf8\x5e\xd8\xaf\x06\xb2\x96\xea\x34\x8f\x7d\xa9\xc7\xe1\x30\x5c\x1a\x83\xe6\x7a\xd6\x5b\x2f\x6c\x56\x37\x82\x8a\xc3\xf2\x6a\xf7\xeb\x77\xee\xcf\xe0\xe9\xfd\xd5\x49\x7c\x2c\x33\x6e\xe9\xab\xec\xea\xec\x02\x80\x76\xd7\xf4\x3e\x79\x82\x2d\xf4\xde\xf2\x96\xa6\x86\x32\xcf\x0f\x52\x23\xe5\x95\xb4\x8e\x72\x3f\xc2\xa7\x53\x9c\x23\xfb\xf6\x61\x59\x4b\x3e\x6e\x59\xc1\x35\x79\x19\x5d\x48\x9b\xe5\x76\xe9\x7e\x97\x3c\xfd\xf7\xdb\x21\x9b\x5f\x0f\xb5\xa4\x43\xb7\x0f\x0b\xd3\x44\xaa\x13\x55\xa7\xa7\xc7\x5e\x99\x7d\xd4\x08\x47\x68\xa3\xaa\xd3\x7c\x29\x5c\xff\xbc\xf6\x73\xfe\x97\x9f\x1e\x32\x88\x37\xc5\xfd\x7d\x75\x5f\xac\xef\xd7\x78\xbb\x11\x1f\xe2\x8d\x28\x4b\xdc\xec\xd3\xdb\xfd\xdd\xfd\xa6\xda\x7c\x9f\xc4\x1b\x8c\xcb\xf8\xad\x81\x5f\x98\xf6\x75\x69\xac\xac\xcf\x19\xe1\xaf\x9c\x27\xf1\x34\xce\x2f\x97\x79\xc7\x90\x90\x19\xf0\x72\xf8\x8e\xd5\x62\xe4\x54\x77\xfe\xc7\xb5\xf7\x7b\x8e\xf8\x1a\x0c\x6f\xc3\x05\x2c\x35\x68\x7c\xa1\xc1\xe6\xe5\x33\xe9\xe0\x4c\xb4\xbb\x88\x96\x29\x6e\x9e\xc6\x39\x71\xb6\x7a\xba\x9b\x71\xe7\x28\x8e\xe9\xaf\x82\x53\x3c\x8c\xfc\x52\x35\xfe\x50\xb3\x49\x34\x42\xa7\xd7\xc5\x62\xc4\xe5\x8f\x8b\x7f\x02\x00\x00\xff\xff\x3c\xac\x02\x53\x07\x09\x00\x00") func etcNginxLuaUtilLuaBytes() ([]byte, error) { return bindataRead( @@ -350,10 +392,12 @@ func AssetNames() []string { // _bindata is a table, holding each asset generator, mapped to its name. var _bindata = map[string]func() (*asset, error){ + "etc/nginx/lua/balancer/chash.lua": etcNginxLuaBalancerChashLua, "etc/nginx/lua/balancer/ewma.lua": etcNginxLuaBalancerEwmaLua, "etc/nginx/lua/balancer.lua": etcNginxLuaBalancerLua, "etc/nginx/lua/configuration.lua": etcNginxLuaConfigurationLua, "etc/nginx/lua/sticky.lua": etcNginxLuaStickyLua, + "etc/nginx/lua/test/balancer/chash_test.lua": etcNginxLuaTestBalancerChash_testLua, "etc/nginx/lua/test/balancer_test.lua": etcNginxLuaTestBalancer_testLua, "etc/nginx/lua/test/up.sh": etcNginxLuaTestUpSh, "etc/nginx/lua/util.lua": etcNginxLuaUtilLua, @@ -407,12 +451,16 @@ var _bintree = &bintree{nil, map[string]*bintree{ "nginx": &bintree{nil, map[string]*bintree{ "lua": &bintree{nil, map[string]*bintree{ "balancer": &bintree{nil, map[string]*bintree{ + "chash.lua": &bintree{etcNginxLuaBalancerChashLua, map[string]*bintree{}}, "ewma.lua": &bintree{etcNginxLuaBalancerEwmaLua, map[string]*bintree{}}, }}, "balancer.lua": &bintree{etcNginxLuaBalancerLua, map[string]*bintree{}}, "configuration.lua": &bintree{etcNginxLuaConfigurationLua, map[string]*bintree{}}, "sticky.lua": &bintree{etcNginxLuaStickyLua, map[string]*bintree{}}, "test": &bintree{nil, map[string]*bintree{ + "balancer": &bintree{nil, map[string]*bintree{ + "chash_test.lua": &bintree{etcNginxLuaTestBalancerChash_testLua, map[string]*bintree{}}, + }}, "balancer_test.lua": &bintree{etcNginxLuaTestBalancer_testLua, map[string]*bintree{}}, "up.sh": &bintree{etcNginxLuaTestUpSh, map[string]*bintree{}}, }}, diff --git a/rootfs/etc/nginx/lua/balancer.lua b/rootfs/etc/nginx/lua/balancer.lua index 4651f5d45..7e8840683 100644 --- a/rootfs/etc/nginx/lua/balancer.lua +++ b/rootfs/etc/nginx/lua/balancer.lua @@ -6,6 +6,7 @@ local lrucache = require("resty.lrucache") local resty_lock = require("resty.lock") local ewma = require("balancer.ewma") local sticky = require("sticky") +local chash = require("balancer.chash") -- measured in seconds -- for an Nginx worker to pick up the new list of upstream peers @@ -62,6 +63,11 @@ local function balance() lb_alg = "round_robin" end + if backend["upstream-hash-by"] then + local endpoint = chash.balance(backend) + return endpoint.address, endpoint.port + end + if lb_alg == "ip_hash" then -- TODO(elvinefendi) implement me return backend.endpoints[0].address, backend.endpoints[0].port @@ -111,6 +117,11 @@ local function sync_backend(backend) ngx.shared.balancer_ewma_last_touched_at:flush_all() end + -- reset chash for this backend + if backend["upstream-hash-by"] then + chash.reinit(backend) + end + ngx.log(ngx.INFO, "syncronization completed for: " .. backend.name) end diff --git a/rootfs/etc/nginx/lua/balancer/chash.lua b/rootfs/etc/nginx/lua/balancer/chash.lua new file mode 100644 index 000000000..493b51b8c --- /dev/null +++ b/rootfs/etc/nginx/lua/balancer/chash.lua @@ -0,0 +1,48 @@ +local resty_chash = require("resty.chash") +local util = require("util") +local string_sub = string.sub + +local _M = {} +local instances = {} + +-- given an Nginx variable i.e $request_uri +-- it returns value of ngx.var[request_uri] +local function get_lua_ngx_var(ngx_var) + local var_name = string_sub(ngx_var, 2) + return ngx.var[var_name] +end + +function _M.balance(backend) + local instance = instances[backend.name] + if not instance then + return nil + end + + local key = get_lua_ngx_var(backend["upstream-hash-by"]) + local endpoint_string = instance:find(key) + + local address, port = util.split_pair(endpoint_string, ":") + return { address = address, port = port } +end + +function _M.reinit(backend) + local instance = instances[backend.name] + + local nodes = {} + -- we don't support weighted consistent hashing + local weight = 1 + + for _, endpoint in pairs(backend.endpoints) do + local endpoint_string = endpoint.address .. ":" .. endpoint.port + nodes[endpoint_string] = weight + end + + if instance then + instance:reinit(nodes) + else + instance = resty_chash:new(nodes) + instances[backend.name] = instance + end +end + +return _M diff --git a/rootfs/etc/nginx/lua/test/balancer/chash_test.lua b/rootfs/etc/nginx/lua/test/balancer/chash_test.lua new file mode 100644 index 000000000..e38cd5001 --- /dev/null +++ b/rootfs/etc/nginx/lua/test/balancer/chash_test.lua @@ -0,0 +1,6 @@ +local cwd = io.popen("pwd"):read('*l') +package.path = cwd .. "/rootfs/etc/nginx/lua/?.lua;" .. package.path + +describe("[chash_test]", function() + -- TODO(elvinefendi) add unit tests +end) diff --git a/rootfs/etc/nginx/lua/test/balancer_test.lua b/rootfs/etc/nginx/lua/test/balancer_test.lua index 0e6b7b58e..5bc972022 100644 --- a/rootfs/etc/nginx/lua/test/balancer_test.lua +++ b/rootfs/etc/nginx/lua/test/balancer_test.lua @@ -49,6 +49,7 @@ local function init() mock_sticky = {} mock_ngx_balancer = {} mock_ewma = {} + mock_chash = {} mock_backends = dict_generator(default_backends) mock_lrucache = { new = function () return mock_backends end @@ -78,6 +79,7 @@ local function init() package.loaded["cjson"] = mock_cjson package.loaded["resty.lock"] = mock_lock package.loaded["balancer.ewma"] = mock_ewma + package.loaded["balancer.chash"] = mock_chash package.loaded["configuration"] = mock_config package.loaded["sticky"] = mock_sticky balancer = require("balancer") diff --git a/rootfs/etc/nginx/lua/util.lua b/rootfs/etc/nginx/lua/util.lua index 1cd113171..53fda849d 100644 --- a/rootfs/etc/nginx/lua/util.lua +++ b/rootfs/etc/nginx/lua/util.lua @@ -1,6 +1,17 @@ local _M = {} local string_len = string.len +function _M.split_pair(pair, seperator) + local i = pair:find(seperator) + if i == nil then + return pair, nil + else + local name = pair:sub(1, i - 1) + local value = pair:sub(i + 1, -1) + return name, value + end +end + -- this implementation is taken from -- https://web.archive.org/web/20131225070434/http://snippets.luacode.org/snippets/Deep_Comparison_of_Two_Values_3 -- and modified for use in this project diff --git a/test/e2e/lua/dynamic_configuration.go b/test/e2e/lua/dynamic_configuration.go index 06f6ee41f..14c4a1acd 100644 --- a/test/e2e/lua/dynamic_configuration.go +++ b/test/e2e/lua/dynamic_configuration.go @@ -218,6 +218,51 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() { }) Expect(err).NotTo(HaveOccurred()) }) + + It("should not fail requests when upstream-hash-by annotation is set", func() { + ingress, err := f.KubeClientSet.ExtensionsV1beta1().Ingresses(f.IngressController.Namespace).Get("foo.com", metav1.GetOptions{}) + Expect(err).ToNot(HaveOccurred()) + + ingress.ObjectMeta.Annotations["nginx.ingress.kubernetes.io/upstream-hash-by"] = "$query_string" + _, err = f.KubeClientSet.ExtensionsV1beta1().Ingresses(f.IngressController.Namespace).Update(ingress) + Expect(err).ToNot(HaveOccurred()) + + replicas := 2 + err = framework.UpdateDeployment(f.KubeClientSet, f.IngressController.Namespace, "http-svc", replicas, nil) + Expect(err).NotTo(HaveOccurred()) + time.Sleep(5 * time.Second) + + resp, body, errs := gorequest.New(). + Get(fmt.Sprintf("%s?a-unique-request-uri", f.IngressController.HTTPURL)). + Set("Host", "foo.com"). + End() + Expect(len(errs)).Should(Equal(0)) + Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + + hostnamePattern := regexp.MustCompile(`Hostname: ([a-zA-Z0-9\-]+)`) + upstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] + + for i := 0; i < 5; i++ { + resp, body, errs := gorequest.New(). + Get(fmt.Sprintf("%s?a-unique-request-uri", f.IngressController.HTTPURL)). + Set("Host", "foo.com"). + End() + Expect(len(errs)).Should(Equal(0)) + Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] + Expect(newUpstreamName).Should(Equal(upstreamName)) + } + + resp, body, errs = gorequest.New(). + Get(fmt.Sprintf("%s?completely-different-path", f.IngressController.HTTPURL)). + Set("Host", "foo.com"). + End() + Expect(len(errs)).Should(Equal(0)) + Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + anotherUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] + Expect(anotherUpstreamName).NotTo(Equal(upstreamName)) + }) + Context("when session affinity annotation is present", func() { It("should use sticky sessions when ingress rules are configured", func() { cookieName := "STICKYSESSION"