From 7ac4e1db3013432f72d18c6bd97d6ef44c2caba5 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Wed, 9 May 2018 11:26:04 -0400 Subject: [PATCH] fix bug with lua sticky session implementation and refactor balancer --- internal/file/bindata.go | 33 +---- rootfs/etc/nginx/lua/balancer.lua | 91 +++++--------- rootfs/etc/nginx/lua/balancer/ewma.lua | 9 +- rootfs/etc/nginx/lua/balancer/resty.lua | 79 +++++++++++- rootfs/etc/nginx/lua/sticky.lua | 133 -------------------- rootfs/etc/nginx/lua/test/balancer_test.lua | 65 +++------- rootfs/etc/nginx/lua/util.lua | 30 ++++- test/e2e/lua/dynamic_configuration.go | 53 ++++---- 8 files changed, 194 insertions(+), 299 deletions(-) delete mode 100644 rootfs/etc/nginx/lua/sticky.lua diff --git a/internal/file/bindata.go b/internal/file/bindata.go index c0139d69a..d9d674820 100644 --- a/internal/file/bindata.go +++ b/internal/file/bindata.go @@ -4,7 +4,6 @@ // rootfs/etc/nginx/lua/balancer/resty.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 @@ -80,7 +79,7 @@ func (fi bindataFileInfo) Sys() interface{} { return 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") +var _etcNginxLuaBalancerEwmaLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x57\xeb\x6e\xdb\x3a\x12\xfe\xef\xa7\x18\xf8\x20\xbb\xf2\xa9\x2c\xdb\x69\xda\x4d\x8d\x6a\x81\x6c\xeb\x02\x41\x37\x4d\x90\x14\x28\xba\x45\x20\xd0\xd4\xc8\xe2\x5a\x22\xb5\x24\x15\xc5\x28\xda\x67\x5f\x90\xd4\xcd\x97\x34\x4d\x8b\xf3\x27\x31\x39\x17\xce\xf7\x71\x38\x33\x1a\x8f\xe1\x52\xb2\x15\xe3\x24\x83\xb3\x52\xa7\x42\xaa\x39\xdc\xa4\xec\x0e\x3e\x90\x15\x91\xe4\xbf\x84\xc3\xdf\xe0\x86\x0a\xad\xe1\x9d\x24\x9c\x32\x35\x18\x8f\xe1\x8c\x52\x54\x0a\xe3\x39\x5c\x10\x49\x53\x98\x1d\xfb\x70\x3c\x9d\x9d\x1a\xd9\x39\x57\x05\x93\x44\x33\xc1\x21\x96\xa4\xe2\x90\x48\x91\xcf\x8d\x28\xd5\xba\x50\xf3\xc9\x64\xc5\x74\x5a\x2e\x03\x2a\xf2\x89\xae\x98\xd6\x28\x27\x09\xe3\x64\x95\xe1\x64\x99\x89\xe5\x64\xb6\xa4\xa7\xcf\xff\x41\x4f\x12\x24\x09\x9d\x4e\x5f\xbd\xc4\x93\xe7\x74\x8a\xaf\x4e\x5f\xcc\x5e\x92\x53\x9c\xd1\x17\x53\x7a\x72\x72\x3c\x33\x3e\x01\x1a\xdb\x31\x15\x12\x27\x4a\xd2\x49\x4e\x18\x9f\x28\x4a\x32\x32\x39\x74\x46\x26\x48\xbc\x24\x19\xe1\x14\xe5\xe4\x0a\xc9\x7a\x51\xe5\x24\xb0\xfa\x83\xc1\x20\x13\x94\x64\x20\x51\xe9\x4d\x94\x09\xba\x86\x10\x24\xfe\xaf\x64\x12\xbd\xa1\xdd\x0d\xcc\xee\x70\x54\x2b\x96\x9a\x65\x7d\x15\xb3\x1e\x8e\x1a\x37\x6f\x17\x6f\xce\x3e\x47\x1f\xcf\x2f\x16\x10\xc2\x6c\x0a\xe3\x31\xe8\x94\x29\xb8\x23\x59\x89\xc0\x14\x30\x0e\x0a\xa9\xe0\xb1\xaa\x2d\xfe\x7d\xf9\xe6\x7d\xf4\x7e\xf1\x19\x42\x18\xce\xb1\xca\x49\xb4\xc6\xcd\xb0\x16\x5e\x9d\xbf\x79\x1f\xdd\x2c\x3e\x46\x37\xe7\xff\x31\x1e\x8f\x9b\x73\xac\x62\x1b\x6d\x13\xfa\x9c\x63\xe5\x0d\xcd\x2f\x35\xf4\xe1\xab\x66\x39\x8a\x52\x43\x08\x53\x1f\xf0\xbe\x30\x6b\xb3\x08\x66\xdf\xda\x80\xa3\x0b\x08\xe1\xeb\xb7\x66\x99\x94\x9c\xda\x9b\x34\x4e\xbc\xb2\x50\x5a\x22\xc9\x47\x03\x80\x5a\xdd\x07\x94\x12\xc2\x2e\x80\xf9\x96\x26\x04\x41\x8b\xc8\x58\xb1\xc4\xea\xeb\x14\xf9\x00\xa0\x5d\x7f\x0f\x61\x58\x47\x37\xec\x84\x00\x7c\x75\x1f\x64\x62\xe5\x99\xff\x8b\xeb\x6b\x1f\x94\x96\x8c\xaf\x82\x44\xc8\x9c\x68\x6f\xb8\xf8\x74\x71\x06\xff\xaa\xaf\x12\x12\xc2\x32\x8c\x41\x0b\x1b\xed\x1c\x8e\x0c\x6a\x2d\x9c\x8d\x87\x52\x8e\x46\x23\xeb\x18\x79\x3c\x70\x7f\x07\x00\x12\x75\x29\xb9\x09\x63\x60\x77\x76\x80\x97\xdc\x02\xea\x20\x8b\xf5\x3e\xe6\x9e\x12\x4b\x80\x0b\x0d\x62\xdd\xe1\xf8\x55\x14\xce\xeb\x83\x38\x7e\x2e\xfe\x18\x29\xd9\x44\x26\x54\xcf\xfc\xf1\x21\x23\x4a\x47\x5a\x94\x34\xc5\x38\x22\xda\x07\xa9\xb5\x0f\x5c\x54\x1d\x44\x1d\x43\x68\x76\x60\xbc\xab\x3d\x00\x27\xf4\x74\x0c\xff\x84\xe9\x08\x08\x8f\xcd\x8e\x90\x30\x6d\xcd\x2b\x64\xab\xd4\xa4\x59\x4e\x74\x1a\xe0\x7d\xe1\x8d\x75\x3c\xe9\x9e\xc2\xc8\x84\x6d\x82\xa9\x39\x84\x3f\x1b\x93\x67\x26\x18\xf8\x13\xbc\x59\x30\x85\x71\xbd\x3b\xea\x81\xac\x72\x72\x10\xe5\x0a\x75\x24\x64\x54\x16\x31\xd1\xe8\xd0\x36\x29\x58\x03\x74\xa2\x0e\xa3\xa1\x36\x72\xf7\xc8\x59\xe6\x2e\xce\xe9\x74\x17\xd7\xd3\xd9\xcb\x7f\x97\x43\xdd\xeb\x33\x7e\x56\xf7\x81\x4a\x89\xc4\x38\x68\xca\x8b\x0d\x65\xbe\x42\xdd\xd9\x36\x5c\xb1\xa4\xf3\xff\xdd\x06\xd1\x1d\xdc\x83\xeb\xb7\x5a\xdd\x95\xbb\x53\xcd\x05\xb9\x43\xb9\xa8\x7a\x09\xba\x73\x65\x3f\x08\x2c\xda\x51\x3d\x1c\x68\x8d\xee\x29\x89\xd4\xbd\x83\x5d\x4a\xb7\x90\x39\xe2\xb7\x40\xa9\xd2\xb6\x16\xfb\xc4\x7c\x48\x84\xa4\x6c\x99\xe1\x53\x30\xa8\x1e\x86\x36\xaf\xeb\x68\x6a\xef\x87\x9f\xe6\xa7\xb3\xeb\x0f\x3e\x0c\x1f\xf5\xde\xbc\xd0\xa1\x29\x6e\xe6\x35\xb6\xd9\xc0\x92\x2e\xe2\xdf\x3b\xe2\x8e\x64\x2c\x06\xa6\x31\x57\x8d\xcb\x0d\x88\x3b\x94\x95\x34\xbd\x8c\x0f\x7b\x05\xe0\xc9\x94\xed\x50\x64\xb6\x7e\x87\xa3\xbf\x80\x93\x27\x73\xd0\x2b\xc0\x7b\x19\x66\x55\x76\x0b\x86\x32\xc3\xc2\xd6\x83\xee\x8f\x42\x2c\x2f\x32\xcc\x91\x6b\x37\xc6\x94\x0a\x63\xe0\x24\x47\xe5\xf4\x16\x3c\x2e\x04\xe3\x5a\x41\x2c\xf8\xdf\x35\xa4\xe4\x0e\x9d\xdc\x07\x25\xa0\x20\x4a\x31\xbe\x32\xbd\xfd\xfc\x6a\x7e\x25\xa4\x06\xa2\x60\x8d\x1b\x60\x5c\x69\x24\x5d\xe1\x68\xce\x8f\x8c\x31\x84\xed\x3a\x20\x71\x2c\xcd\x25\x04\x01\x0c\xe7\x96\xd4\x56\x54\x08\xa9\x3b\x98\x3f\x28\x7c\xd6\xa9\x6f\x7a\x7d\x42\x32\x85\x23\x47\xc4\x78\xbc\x8b\x4e\xb1\x9c\x65\x44\x9a\x8e\xd3\x0c\x68\xc8\x83\x8a\xad\x59\x81\x31\x23\x81\x90\xab\x89\x59\x4d\xde\x31\x95\xa2\x3c\x5a\x1c\x1f\x9d\x4e\x8f\x5e\x3d\xff\x4c\x34\xaa\x48\xa5\x65\x92\x64\x68\xfc\x0a\xf9\x88\x83\x6b\xc2\x63\x91\x47\x05\xca\xbc\x74\x87\x1b\xb3\x4c\x88\xc2\xce\x88\x30\x33\x40\xd7\x66\xaf\x60\x74\x0d\x04\xa4\x35\xa8\xa7\x25\xe9\x94\x74\x8a\x20\xd1\x8c\x78\x86\x63\x93\x28\x22\x81\x92\x1b\x0b\x8c\x9d\xaa\x02\x8f\x19\x57\x7c\x64\x7c\xa9\x8a\x14\xd6\xca\xb9\x21\x1a\x0a\xa1\x98\x85\xce\xa0\x62\x3a\x7d\x40\x28\xf7\x72\xc6\x41\x8d\x0a\x44\xa9\x3c\xfb\xd7\x87\xb5\xc9\x9d\x44\x48\x60\xe1\xcc\x87\x35\xc4\xa2\x69\x1d\x66\x8a\x24\x3c\x8e\x18\x8f\xf1\xbe\xe9\x86\x0e\x91\xc7\xfc\x3f\xac\xbd\x9b\x47\xec\xcf\x2f\xec\xd6\xaf\x7f\x75\x66\xb7\x10\xee\xef\xf9\xad\x41\xfb\xca\x0c\x65\x76\xcf\x51\x78\x0b\x15\xcb\x5c\x87\xa0\x82\x6b\xc2\x78\x4b\x66\xb6\x01\x85\x19\x52\x8d\x31\xac\x1d\xa3\x2e\x94\x83\x7d\xd5\xb0\x1a\x99\x93\xdd\x7b\xe9\x63\x7e\x98\x8d\xa6\xc1\x56\xa8\xb4\x33\x6c\x39\x98\x1d\x14\x43\x08\x3d\xff\x5f\xf6\x2d\x6f\x5b\x92\xcd\xd0\xbb\x47\x33\xc7\xea\xa0\x23\x76\x3b\x6a\xa6\xcc\x4e\xe5\xf5\xf6\xd1\xbd\x69\x73\xff\x5c\x7f\x37\x4c\xe6\x77\x9e\x76\x46\xc9\xf6\x49\x3e\x08\xc2\x31\xdc\x72\x1b\x5d\x34\x65\xd9\x5b\x12\xba\x46\x1e\x77\xe4\x59\x1f\x10\x42\x2d\x08\xb0\xa9\x38\xae\xa2\xfe\x51\xcb\x43\x98\xed\xb5\xd6\x3a\x0f\x6e\x77\x66\x14\xf3\x65\xe0\xd5\x76\xaf\xb7\x3f\x24\xdc\x14\x57\xcb\x84\xdc\x16\x6e\x85\x14\x51\x51\x6c\x4c\x9d\xd2\x2c\x0b\x62\xc4\xc2\xac\xbd\x36\x93\x9b\x08\xf6\x93\xc6\x1a\xda\xf4\xd8\xe3\x80\x24\x1a\x65\xd4\x30\xd1\x51\x20\x51\x15\x82\x2b\x8c\xea\xcf\x14\x2d\x78\x99\x2f\x51\x7a\xf6\x70\x53\xf7\x12\x26\x95\x8e\xec\xc3\xb5\x9d\xe4\x8e\xc8\xa0\x2d\x7e\x5b\xe6\xa3\xd1\xf6\x84\x4a\x05\xe7\x48\xf5\x2f\xba\xee\x5b\xef\x7a\x36\xf3\x6b\xb8\xed\xff\xd9\x36\x94\xbd\xe2\xdf\xf0\xf9\xe8\xb9\xa6\x29\x34\xb3\x95\xb5\x60\x2a\x5a\x66\x84\xf7\x06\xd3\xdd\x6c\x68\x93\xe0\xf1\x01\x59\xcb\x12\x0f\x5c\x8f\xda\x70\xea\x45\x75\x83\xfc\x78\xf9\xf6\x72\x0e\xd7\x68\xaa\xae\xd2\x66\xb0\x13\x09\xd8\xcf\x97\x02\x65\x93\xac\x03\x78\x78\xf2\x48\xb2\x52\xa5\x11\xc9\x32\x7b\xd1\x3f\x3d\xd3\xf5\xcd\x6c\x84\x75\xa6\x45\x17\x83\xff\x07\x00\x00\xff\xff\xca\x93\xed\xb3\xc2\x10\x00\x00") func etcNginxLuaBalancerEwmaLuaBytes() ([]byte, error) { return bindataRead( @@ -100,7 +99,7 @@ func etcNginxLuaBalancerEwmaLua() (*asset, error) { return a, nil } -var _etcNginxLuaBalancerRestyLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x54\x4d\x8b\xdc\x30\x0c\xbd\xe7\x57\x88\x9c\x12\xc8\x06\x7a\x5d\xc8\xa5\xd0\x42\xa1\xdb\xc2\x5e\x97\xc1\x38\x89\x92\x98\x49\xe4\xa9\xed\x74\x66\x58\xb6\xbf\xbd\xf8\x23\x9f\x33\xb4\xdb\x9e\x42\x64\xe9\xf9\x3d\xe9\xc9\xbd\xac\x78\x0f\x0a\xb5\xb9\x32\x25\x47\xaa\x95\x2c\x05\x41\x01\x0a\x7f\x8c\x42\x61\x12\xbb\xb3\x7c\x39\x8b\xd3\x68\x5d\x54\x75\x5c\x77\xb7\xf9\x2e\x3c\xa7\x8e\x46\xf4\xeb\x1c\xfb\x1f\xa7\x51\x38\x65\x4f\x50\xc0\xeb\x5b\xf8\x13\xa4\x0d\xa7\x0a\xb5\x0f\x86\x68\x33\x52\x65\x84\x24\x68\xd1\x30\x7f\x73\xc9\x7b\x9b\xa7\x18\xc9\x1a\x75\x82\x54\x9f\xa4\x20\xa3\xd3\x08\xc0\x17\xb9\x03\x0f\x33\x85\xce\x28\xda\xce\x40\x01\x1f\xa2\x08\xa0\x91\x0a\x58\x06\x53\x29\x08\x82\x13\x17\x6a\x0d\x06\xb5\x8c\x00\xa6\xf2\x29\xce\xb4\x51\x82\x5a\x28\xe6\x48\xce\xeb\x5a\xa1\xd6\x90\xe7\x10\x3f\xc6\xf6\x33\x1f\x9d\xa4\x32\x0e\xc4\x11\x7a\xd9\x81\x1c\xa0\x08\xb4\x22\xb0\x35\x96\x98\x42\x33\x2a\xf2\xf9\x91\x8b\xed\xda\x20\x48\xec\xfb\x90\x34\xbc\x32\x52\x5d\xb3\xb9\x85\x8b\xb2\x3b\x4d\x79\x4f\x23\x23\x00\xd1\xcc\x70\x60\x3a\x24\xa7\x63\x8a\x3c\x2a\xb4\x44\x12\x57\x68\xaf\xc0\x5e\xe3\x26\x03\x0a\x08\xb4\x1e\x09\xcf\xab\xc4\x8d\xce\x29\xdb\x4b\x9d\x45\xb2\xa7\x3c\x70\x4b\x4a\x5e\x1d\x91\xea\x45\xc6\xea\x82\xd9\x31\x2f\x21\x2b\x27\x3e\xe0\xc1\x93\x27\x69\xee\x08\xa0\xf6\x92\xf7\xb2\x4d\xec\xf7\xd3\xf3\x73\x06\x31\x49\xf8\xfa\x11\x78\xdf\x4a\x25\x4c\x37\x2c\x35\x67\xae\xa1\xb1\xee\x8f\x53\x57\x3a\x8d\x46\xf4\x8b\x8c\xbb\xe6\xf0\xf7\x07\x4a\x2f\xf1\x78\xd2\x46\x21\x1f\x1e\xec\x66\x3c\x94\xd7\xf8\xb0\xd0\xf1\xf5\x47\xbc\x42\xe1\x76\x25\xef\x47\xce\xa8\xbd\xb0\x9f\x5c\x25\x7f\x40\xf0\x8c\x6e\x4d\x39\xcf\xa7\x11\x54\x27\x47\xbc\x6e\x66\xf3\xb7\xfc\x74\x2f\x2c\x58\x3b\x03\x6b\xe4\x89\xa2\x3e\xf5\xc2\x30\xbb\x2e\xc9\x0e\x30\xb3\x0b\x90\x2e\xd3\x7d\x9d\x00\xa0\xb8\x81\x72\x9f\xb7\xdb\xb9\x07\x63\xfd\xdf\xd8\xc3\xae\x78\xdf\xb9\x77\x67\xfb\xbc\xfd\xc3\x64\xf6\x20\xee\x5d\x5b\xfa\x73\x77\x3b\xfc\xf5\x83\xf1\x4b\x36\xa0\xe1\x86\x97\x3d\x26\x53\xa6\x9f\x9a\x68\x60\x30\x39\x63\x82\x6a\xbc\xc0\xaf\x79\x4f\x16\x9c\xad\x4d\xbf\x7c\xfb\xfc\x3d\x83\x78\x63\xd2\x8e\x6b\x28\x11\x09\xaa\x8e\x53\x8b\x75\x66\x59\xa2\x31\x76\xaa\xa6\xc3\x99\x5b\xb0\xee\x66\x2d\xbd\x81\xbd\x92\x45\xcf\xfd\x9e\xba\x6e\xbf\xeb\xc1\x99\xca\x56\x8f\x88\x83\x0e\x56\x60\x4f\xd1\xef\x00\x00\x00\xff\xff\xdd\x37\x9c\x81\x72\x06\x00\x00") +var _etcNginxLuaBalancerRestyLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x56\x4b\x8b\xe4\x36\x10\xbe\xfb\x57\x14\x3e\xb9\xa1\xc7\x61\x0f\xb9\x34\xf8\x90\x84\x04\x02\x99\x04\x36\xc7\x61\x10\x6a\xbb\x6c\x0b\xdb\x92\x23\x55\xcf\x4c\x33\xcc\xfe\xf6\x20\xc9\x96\x9f\x3d\x3b\xd9\xec\xc9\xb8\x5e\xfa\x54\x8f\x4f\xd5\xaa\x9c\xb7\xa0\xd1\xd0\x95\x69\x75\x91\x85\x56\x67\x21\x21\x03\x8d\xff\x5c\x84\xc6\x24\x76\xba\x74\xd2\xc5\x87\x68\xee\x94\xd7\xdc\xd4\x5b\x7b\x27\x0e\xa6\x17\x12\xed\xdc\xc6\xfe\x07\x65\xde\xec\xb8\x2b\xd5\x08\x8c\x0f\xd1\x60\xc3\xee\x21\x83\xd7\xb7\xe1\x4f\x48\x43\x5c\xe6\x68\xbc\x70\x90\x96\x17\x99\x93\x50\x12\x2a\x24\xe6\xc1\x9d\x79\x6b\xed\x34\x93\xaa\x40\x93\xa0\x2c\x7a\x25\x24\x99\x43\x04\xe0\x9d\x9c\xc2\x87\x19\x45\xcf\x28\xaa\x9a\x20\x83\x4f\x51\x04\x50\x2a\x0d\xec\x08\xa3\x2b\x08\x09\x3d\x17\x7a\x1e\x0c\x0a\x15\x01\x8c\xee\xa3\x9c\x19\xd2\x42\x56\x90\x05\x49\xca\x8b\x42\xa3\x31\x90\xa6\x10\x9f\x62\xfb\x09\xaa\x5e\x69\x72\x41\x1c\xa0\x87\x55\x90\x47\xc8\x06\x58\x11\x58\x1f\x0b\x4c\x23\x5d\xb4\xf4\xf6\x91\x93\xad\xd2\x20\xa4\x58\xe7\x21\x29\x79\x4e\x4a\x5f\x8f\x21\x85\xd3\xcd\x76\x92\xf2\x91\x44\x46\x00\xa2\x0c\xe1\x80\x6a\x94\xee\x1e\xa3\xe4\xa4\xd1\x02\x49\x9c\xa3\x3d\x02\x5b\x83\x0b\x0b\xc8\x60\x80\x75\x92\xf8\x3c\x33\x5c\xdc\x73\xb4\xde\xbf\xaa\x61\x86\x44\xde\x5c\x93\x33\xcf\x1b\x94\xc5\x61\x72\x1c\x24\x0f\xb1\x41\x63\x84\x92\x3f\x95\xa5\x05\x74\xfd\x45\xc9\x52\x54\xf1\x23\x70\x59\x7c\xd5\xe8\x21\x96\xbc\xc3\xf8\x11\xb2\x0c\xe2\xa1\x39\x77\x91\x78\x1d\xb3\xd6\xdf\x80\xe5\x61\x88\xfd\xf7\x52\x3d\x3b\x5f\x69\x88\xb5\xba\xd0\x8d\xe3\x51\xe6\xfa\xda\x13\x16\x6c\xd5\x41\x23\x98\xe3\xba\x3f\xa7\xaa\x07\xdf\x23\xa0\xd6\xbe\xae\xff\x03\xb0\x23\x00\x9f\x30\x53\xf3\x4f\xf1\xd4\x1a\xcb\x83\x20\x73\xf4\x90\x5a\x23\x56\x88\x0a\x0d\x25\x3b\x18\x43\xdb\xec\x7b\x77\xc5\x8f\xef\x39\xcb\xc2\xdf\xc7\x7a\x7c\xc9\x40\x8a\x76\x82\x23\xab\x97\xb4\x55\x55\x62\xbf\xbf\x7e\xfe\xec\xc2\x6e\xfb\x2f\x1c\xbb\x9b\x77\x83\xc4\x7c\x26\xa6\x44\x3f\xf1\xf6\x82\x53\x7a\xbd\x7a\x04\x9d\x37\xae\xd9\x0f\x1e\x96\x54\x34\xe8\x3f\x0c\xcb\x07\x55\x4d\x04\xa0\x9a\x10\xd5\xc5\x38\x19\xa4\xe4\xd5\x05\x69\xf0\x1a\xc4\xcb\xa6\x3c\x3a\xbd\xc3\x08\x99\xff\x7a\x51\xcf\xc9\xf2\x79\xfc\x43\xec\xff\x0b\xd5\x71\xf7\x22\x58\x20\x4f\x5c\xa7\xb5\x32\xe4\x55\x35\x51\xaf\x64\x6b\x8f\x20\xed\xfd\xdf\x66\x37\x52\xcd\xc7\x6e\xb3\x97\xd0\x5e\xe4\x0d\xd3\x5c\x16\xaa\x4b\xc6\xd1\x9f\x72\x29\x64\x81\x2f\x90\x41\xc7\xa9\x4e\x57\x56\xa9\x9c\xe8\x6c\xc5\x1d\x27\x89\x2f\x94\x38\xe7\xc3\x7e\x19\x1d\x89\x6c\x66\x67\x22\xcb\xd9\x48\x7f\xdf\xaa\x06\xac\xb7\x2e\xbe\x28\xfb\xbc\xac\xa7\x0a\x29\xd9\xab\xf0\x0c\x85\xb5\x0f\x10\x7c\x08\xea\xfa\xf5\x3d\x21\xbb\x79\xfa\xd8\x49\x1f\xe0\x97\x9d\xc0\x3e\xc2\xde\x8c\x34\x78\xbd\x4d\xf5\xa7\x52\xc8\x22\x71\x26\xce\x20\x94\x89\xdd\xa7\xc2\x30\xde\xf7\xad\xc8\xf9\xb9\xdd\x63\xda\xed\x8b\x60\xa9\x33\xd0\xd9\xa5\x37\xa4\x91\x77\x77\x96\xa5\xee\xce\x57\xcf\xac\x41\xdd\x2a\x5e\xdc\x0d\x6f\xde\xc0\x61\x6e\x01\x62\x7e\x03\xda\xc2\x19\x6c\x93\x4d\x7f\xcc\x1e\xb9\xb0\xb5\x3c\x0c\x56\xa9\x2d\xd7\xe3\x54\xa5\xed\x23\xba\xe9\x96\x58\x2a\xf8\xe3\x67\xe0\x6d\xa5\xb4\xa0\xba\x9b\x7c\x9e\xb9\x81\xd2\x62\x8c\x17\xed\x24\x45\xbb\x6e\x9e\x55\x71\x86\x07\x7c\x9b\xaf\x19\x5f\xaf\xdb\xe4\xbf\xcc\x89\x25\xee\xf9\x4b\xb2\x93\xfa\x55\x6b\xfa\x56\x73\xb4\xde\x5e\x38\x93\xd5\x0b\x7b\xe2\x3a\x79\x27\xc2\xe1\x06\xce\x9d\x4e\x5a\xbc\x24\xef\xdb\x6f\xc6\x6e\xd8\xdf\x8e\x60\xb7\xb5\xf0\x6e\xf5\xad\x20\x66\x77\xc2\xf5\xcb\x73\xb4\x5b\xde\xac\x27\x5f\xc7\x00\x90\x6d\x42\xb9\xcf\xdb\xb6\xb1\xcc\x55\xe6\xdf\xd8\x55\x03\xb7\xf9\xd5\xca\xad\xd8\xcb\x25\xff\x66\xe1\xbf\x32\x28\xa1\x5a\xeb\xd0\x6e\xe7\x9f\x72\xb6\xbb\x16\x7a\x50\x1d\xf9\xed\xb2\x43\xe2\xe4\x26\x78\x49\x36\xa2\x84\x8e\x52\xc6\x3c\xcf\x7f\x09\x0b\xe2\x14\x67\x39\x1b\xbf\xff\xf9\xdb\x5f\x47\x88\x17\x93\x51\x73\x03\x67\x44\x09\x79\xcd\x65\x65\xd7\x05\x8d\x06\x89\x6c\xa5\xa9\xc6\x80\x6d\x98\x97\xc5\x3e\xea\xa7\x66\xdc\x1b\xc6\xfb\xec\x67\xda\xd5\xe0\x43\x9b\xf6\xe8\x36\xdb\x9e\x37\xf5\xe6\x25\xa1\x1e\xa3\x24\x83\xc1\xd0\x3f\xec\x3e\xfa\x37\x00\x00\xff\xff\xad\x39\x8e\x17\xaf\x0d\x00\x00") func etcNginxLuaBalancerRestyLuaBytes() ([]byte, error) { return bindataRead( @@ -120,7 +119,7 @@ func etcNginxLuaBalancerRestyLua() (*asset, error) { return a, nil } -var _etcNginxLuaBalancerLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x58\x6d\x6f\xdb\x36\x10\xfe\xee\x5f\x71\x10\x50\xc0\xc2\x1c\x61\x1d\xf6\x29\x98\x37\xb8\xad\xbb\x05\xcb\x4b\x91\xa4\x2d\x86\xa1\x10\x68\xe9\x6c\xb1\xa6\x49\x8d\xa4\xe2\x18\xc3\xfa\xdb\x87\xa3\x24\x8a\x92\xec\x64\xdd\xf6\x29\x89\x78\xbc\xd7\xe7\x9e\x3b\x46\xa8\x8c\x09\x90\x9b\xc7\x74\xc5\x04\x93\x19\x6a\x98\x83\xc6\x3f\x2a\xae\x71\x1a\xc9\xcd\x63\xd2\x7e\x8f\xe2\x49\x2d\xfc\xd9\x28\x19\x0a\x65\xf4\xc1\x9f\x66\x4a\xae\xf9\xa6\xd2\xcc\xf2\x81\x58\x78\xe0\xc5\x2b\xcb\x45\x28\x45\x7f\xfb\x43\xa1\xab\x8c\x65\x05\x86\x02\x1a\x8d\x3d\x24\xed\x89\x17\xc5\xfd\x8e\x85\x62\xad\xd7\x09\x1d\x78\x29\x63\x79\xb6\x3d\x84\x72\xf5\x17\x2f\xe0\xb4\x1f\x4d\x85\x57\xe8\x44\xa2\x78\x32\x39\x3b\x83\x1d\x32\x53\x69\xcc\x81\x4b\x30\x98\x29\x99\x1b\xfa\xbc\x56\x1a\x98\x84\xeb\x0d\x97\x8f\xb0\x57\x7a\x8b\x1a\xac\x82\x92\x67\x5b\xa8\x4a\xb0\x05\x82\xc4\x3d\x08\x6e\x2c\xa8\x35\x54\xa5\xb1\x1a\xd9\x0e\x4a\x44\xed\x14\x70\x0b\x7b\x2e\x04\x58\xb6\x45\xf8\x81\xe4\x73\x14\xec\x00\x95\xa4\x74\x65\x4a\x5a\xad\x84\x40\x0d\xef\x6e\xee\xee\x31\x77\x1a\x57\x2c\xdb\xa2\xcc\x41\xad\x3e\x63\x66\xc9\x1e\x7d\xad\x7d\x40\x99\x97\x8a\x4b\xfb\x23\x7c\x03\xaf\x16\xaf\x7f\x5d\x5e\xbf\xb9\x4b\xef\x7e\xbb\x7e\x9d\x5e\x5c\xdf\x2f\x6f\x3f\x2c\x2e\x9b\xf8\x8f\x1f\xc2\x1c\x5e\x4e\x1a\x89\x37\xcb\xb7\x8b\xf7\x97\xf7\xe9\xe5\xab\x74\x71\xf9\x33\xcc\x21\xd2\xaa\x92\x79\xaa\xd5\x8a\xcb\xa8\x95\x4a\xaf\x60\x0e\x7f\xfe\xe5\x92\x74\x7f\xf3\xe6\x66\x8a\xe2\x81\x4b\x5c\xa3\xcc\x79\x0c\x7b\x84\x8c\x49\x28\xb5\x5a\xb1\x95\x38\x00\x7b\x50\x3c\x07\x63\x95\xe6\x72\x03\x4c\x88\x36\x18\x03\x05\x6a\x4c\xe0\x23\x02\x13\x1a\x59\x7e\x70\x52\x48\xa1\xed\x28\xe9\xb6\x40\xae\xa9\x6a\x25\x66\x96\x3f\x20\xd9\x13\x8a\xe5\xe0\x4b\xc8\x77\xa5\xc0\x1d\x4a\xeb\x70\x67\x1a\xff\x5a\xfd\x33\x40\x4d\x65\x6e\xf1\x94\x48\xdc\x4f\x5f\x7e\xfb\xdd\xf7\xf1\x84\xaf\x41\x2a\xdb\x79\x62\x0b\x94\x13\x00\x8d\xb6\xd2\x92\xae\x29\x3d\x8d\xd6\x8c\x0b\xca\xbf\x82\x4c\x23\xb3\xce\x31\xa8\x31\x4b\x20\x68\x2f\x9f\x43\x04\x49\x02\x53\x32\xa6\x34\x44\x95\xdc\x4a\xb5\x97\x51\x1c\x4f\x50\xe6\x6d\xd2\xd6\x95\xcc\x5c\xd7\x6c\xd0\xa6\x59\xa5\x35\x4a\x9b\x36\x2a\xa6\xf1\x04\xa0\xe7\x7b\x2a\xd9\x8e\x3a\x83\x7a\xf4\x81\xe9\xa4\xd4\xea\xf1\x90\xb6\x58\x72\xa7\xc3\x2b\x30\xef\x3c\xda\xa0\x9d\x86\x9a\xe2\xc9\x04\xa0\x1f\x73\x1b\x32\xc0\xd1\x2a\xee\xd8\x61\xe5\xc2\xcc\x3a\xf0\x99\x83\xcc\x5c\xcd\x7e\x72\xf7\xc8\x37\xa1\x36\x53\xfa\xf9\x71\x71\x7b\x3d\x83\x48\x2a\x2f\xdc\xa7\x8a\x35\xc1\xc8\x65\xcd\xe5\xca\x2a\x63\x09\x0e\x7d\x27\x29\x0b\x2e\x63\xbe\x10\xcd\xf1\xb3\x79\x14\xab\x94\x89\xcd\x38\x8d\x30\x3f\x99\xee\x53\xd9\x68\x2c\x4b\x2e\x4e\x79\xf3\x7b\x44\x20\x3c\x6b\x40\x18\x7d\xa2\xa2\xf7\x1b\xe7\xa8\xbf\x8d\xfc\xff\xec\xe4\x2c\xf0\xb4\xd5\x5b\x67\x63\xa0\x76\x94\x22\x6e\x52\xcf\x98\xf5\x2f\x89\xff\xd4\xd6\xa5\xc5\x4d\x27\xeb\x5d\x68\x98\xb9\xe1\x9e\x4e\x07\xd9\x6c\xbf\x76\x6a\xe8\x06\x5f\x77\xe2\x5f\xe6\xe4\x77\xa7\xad\x6b\xbd\x46\x22\x61\x79\xae\xd1\x50\x0f\xb7\x5f\x4a\xa5\xad\x13\xae\x63\x85\x2e\xce\x3e\x4b\xf9\xb2\xf1\x75\x57\xb2\xb6\x75\xce\x0a\x66\x8a\xb3\xd5\x21\xfa\xf4\x44\x28\xfd\x41\xd1\x0e\xc9\x51\x34\x54\x1a\x7f\x6b\x1c\x4a\x50\x1d\xef\xd2\x57\xc4\xd9\x05\xd1\xc6\x39\x87\xc8\x0d\xbc\x27\x3c\xa7\xf3\xa1\xbf\x49\x7b\x6e\xe2\xff\xe8\xc1\x97\xf9\x70\x42\x78\x4f\xc6\x64\x50\x77\x78\xb2\x56\x7a\xc7\xec\x34\x7a\x61\x80\x1b\x97\x32\x53\x95\x64\x00\xf3\x19\xac\x99\x10\x34\x15\xc8\x53\xe2\xd9\x17\x26\x9a\x75\xe4\x50\x5b\x8d\x67\x03\xa3\x21\x4f\xfc\x8b\xd2\x9d\x2c\xdc\xf1\xa6\x3a\xd9\x00\x0d\xde\x4d\x88\xf7\xf6\x97\x19\x04\x06\xfb\x24\xf2\x5c\xda\x8f\x51\x07\x11\xaf\xe7\x85\x40\xb3\xe7\x7b\xd3\xf1\x7d\x42\x54\x1a\xd8\x1f\xb3\xc2\x3f\xa7\xb1\xe7\x7b\x48\xe9\x10\x9d\x61\x1b\x86\x79\xed\x95\x44\x23\x97\xbc\x47\x0d\x4d\x82\x9a\x39\x74\x0e\xb7\x68\xd0\x82\xb1\x34\x72\xd5\x1a\x96\x1f\xaf\x16\x50\xa2\x1f\xb8\xcf\x35\x05\x41\xd0\x14\x4c\x63\xee\xd7\xdb\x94\x44\xce\xd7\xa2\x32\x45\xca\x84\x98\xc6\x4f\x0a\xa6\x82\x19\x9b\x5a\x55\x65\x05\xe6\x29\xb3\x83\x8b\xa7\x06\x52\x58\x25\x33\xa6\x79\x93\xe6\xcc\xd2\x1a\xdb\x9b\x8c\x8e\x2f\x7b\x12\x47\x88\xbf\xb9\x3a\x40\xea\xb0\x0b\xd4\x76\x46\x9b\xa7\xd7\x06\x73\x28\x33\x72\x9a\x56\xf8\x24\xc7\x4c\xe5\x1d\x30\x6a\x95\x81\x29\xb5\x3d\xde\xcc\xcb\xdb\xdb\x19\x40\x94\xa9\x4a\xe4\x4e\xb0\x64\xda\x60\xb7\x39\x91\x9a\xf3\xc1\x54\x0f\xbd\x88\xe3\xa3\x2e\xd3\x2a\x90\xf6\xfc\xa5\x8d\xaf\x64\x5c\x9b\xfe\x75\xc8\x55\x40\x75\x27\x76\x9d\xe0\x46\x52\xef\x3b\xa3\x2b\x69\x56\x30\xb9\x41\xba\x6a\x75\x85\x93\x96\xc4\x47\xb3\x15\x8e\xdc\xa0\xb8\xe9\xf1\x92\xe4\x88\x65\x9a\xa9\x5d\xc9\xb4\x27\x95\x5e\x14\x71\x9f\xed\x3b\x03\x5e\x5b\x60\xa8\xd7\xd7\x47\x95\x9c\x46\x1b\x5b\x5b\xd4\xe9\x78\xa9\x78\x6e\xf8\x3f\xd9\x3a\x6e\x7c\x8c\x35\x7b\x1f\xbc\xf5\xf4\x2a\xa1\x2e\x4e\xeb\xf7\x8f\x13\x1a\xc0\x9f\xda\x79\x5f\xa0\x6c\x9f\x48\xc6\x32\x6d\xcd\xac\x5e\x22\x3d\x7a\xf6\xdc\x16\xaa\xb2\xf5\x0b\x68\x02\x04\x89\x7a\x67\x27\xe8\x59\xbe\xa3\x37\xde\x03\xea\xc3\xf4\xf8\xdb\x65\xd6\xb7\xda\xc4\x47\x1a\x4e\x63\x79\x30\x97\xdc\xae\x5f\x7b\x6a\xd0\x5a\x9a\x46\xf4\x8a\xeb\x4c\x3b\xa8\xf6\xcc\x9c\x0f\xe6\x14\x6a\x1d\xc7\x27\xf3\x94\xb5\xbc\x51\xd7\xa7\x2c\x98\x69\x37\x7b\x2a\x91\xfb\xbb\xad\x4c\x73\x38\x87\x48\xa8\x4d\x50\x97\x71\x49\x06\x1d\x15\xdc\xfe\x32\x07\xff\x9e\x8d\x46\xd3\xad\x79\xda\xec\x2a\x63\x61\x45\xaf\x19\x21\xea\x17\xae\x7f\x53\x11\xa5\xab\xcd\x0c\x56\x95\x85\x3d\x33\x9d\x48\xd3\xe5\xce\xca\x68\x04\x17\xca\xd8\x19\xd0\x04\x73\xbd\xd9\x39\xda\xd0\x0b\x9d\x0f\x28\xda\x32\x5b\x99\x26\x13\xbf\xdc\xdf\xbf\x4b\xef\x96\xb7\x1f\x2e\x5e\x2f\xd3\xf7\xd7\x8b\x0f\x8b\x8b\xcb\xc5\xab\xcb\x65\x6f\x30\x6f\x1e\x13\x7c\xe4\x76\xda\xdd\x0e\xdc\x08\xff\xcb\xe1\x86\xf2\x4e\x69\x4c\xad\xe6\x68\xa6\x2f\xe3\x90\x25\x27\xe0\xa8\xd2\xe3\xac\x7f\xad\x6d\x19\x7a\xae\x4f\xbb\xa8\x9a\x50\x4e\xb1\xe4\xc5\xf5\xdb\x9b\x59\xdb\xd5\x7d\x80\x35\x0a\xdd\xfb\x9f\x56\x20\x9a\x6d\x6e\xd5\x39\x7f\x61\xa0\x32\x04\xb8\xa6\x21\x1d\xaa\x3a\x93\x01\xc2\x8e\xf5\x72\x03\x39\x61\xf0\xab\x70\xce\x05\x7a\xa0\xb7\xae\xf5\xfe\x47\x31\xde\xc3\xc6\xf8\x6e\x2a\x92\x5e\x4d\xfe\x0e\x00\x00\xff\xff\xc6\x54\x2d\xf2\x63\x12\x00\x00") +var _etcNginxLuaBalancerLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x57\x5f\x6f\xdb\x36\x10\x7f\xd7\xa7\x38\x08\x28\x20\x61\xaa\xb0\x0e\x7b\x2a\xe6\x0d\x6e\x9b\x6d\xc5\xd2\xb4\x48\xd2\x16\xc3\x30\x10\xb4\x74\x96\x59\x53\xa4\x46\x52\x71\x8c\x61\xfb\xec\xc3\x51\x12\x25\xd9\x4a\xb2\x87\x01\x7b\x69\x63\xf2\xee\xf8\xbb\xbb\xdf\xfd\x91\xd4\x05\x97\xa0\xaa\x7b\xb6\xe1\x92\xab\x02\x0d\xac\xc0\xe0\x1f\xad\x30\x98\xc4\xaa\xba\xcf\x87\xf3\x38\x8d\x3a\xe1\x2f\x56\xab\xa9\x50\x41\x07\xe1\xb6\xd0\x6a\x2b\xaa\xd6\x70\x27\x4e\xc4\xa6\x17\x41\xbc\x75\x42\x4e\xa5\xe8\x77\xb8\x94\xa6\x2d\x78\xb1\xc3\xa9\x80\x41\xeb\x8e\xf9\x70\x13\x44\xf1\x50\xf3\xa9\xd8\x80\x3a\xa7\x8b\x20\xe5\x95\x17\x3d\x0d\xf2\x5e\x24\x4e\xa3\xe8\xf9\x73\xa8\x91\xdb\xd6\x60\x09\x42\x81\xc5\x42\xab\xd2\xd2\xf1\x56\x1b\xe0\x0a\xae\x2a\xa1\xee\xe1\xa0\xcd\x1e\x0d\x38\x0d\x8d\x28\xf6\xd0\x36\xe0\x76\x08\x0a\x0f\x20\x85\x75\xa0\xb7\xd0\x36\xd6\x19\xe4\x35\x34\x88\xc6\x1b\x10\x0e\x0e\x42\x4a\x70\x7c\x8f\xf0\x1d\xc9\x97\x28\xf9\x11\x5a\x45\xd1\x28\xb4\x72\x46\x4b\x89\x06\x3e\xbc\xbf\xb9\xc5\xd2\x5b\xdc\xf0\x62\x8f\xaa\x04\xbd\xf9\x82\x85\xa3\xf7\xe8\xb4\xc3\x80\xaa\x6c\xb4\x50\xee\x7b\xf8\x0a\x5e\xad\x5f\xff\x72\x71\xf5\xe6\x86\xdd\xfc\x7a\xf5\x9a\xbd\xbd\xba\xbd\xb8\xfe\xb4\xbe\xec\xfd\x5f\xbe\x84\x15\xbc\x88\x7a\x89\x37\x17\x3f\xae\x3f\x5e\xde\xb2\xcb\x57\x6c\x7d\xf9\x13\xac\x20\x36\xba\x55\x25\x33\x7a\x23\x54\x3c\x48\xb1\x77\xb0\x82\x3f\xff\xf2\x41\xba\x7d\xff\xe6\x7d\x82\xf2\x4e\x28\xdc\xa2\x2a\x45\x0a\x07\x84\x82\x2b\x68\x8c\xde\xf0\x8d\x3c\x02\xbf\xd3\xa2\x04\xeb\xb4\x11\xaa\x02\x2e\xe5\xe0\x8c\x85\x1d\x1a\xcc\xe1\x33\x02\x97\x06\x79\x79\xf4\x52\x48\xae\xd5\x14\x74\xb7\x43\x61\x28\x6b\x0d\x16\x4e\xdc\x21\xbd\x27\x35\x2f\x21\xa4\x50\xd4\x8d\xc4\x1a\x95\xf3\xb4\xb2\x3d\xbe\xc1\x7e\x16\xfe\x62\x68\x28\xdf\x03\x6f\x72\x85\x87\xe4\xc5\xd7\xdf\x7c\x9b\x46\x62\x0b\x4a\xbb\x11\x92\xdb\xa1\x8a\x00\x0c\xba\xd6\x28\x40\x63\xb4\x49\xe2\x2d\x17\x92\x12\xa1\xa1\x30\xc8\x9d\x47\x08\x1d\x37\x89\x0d\x83\xf2\x4b\x88\x21\xcf\x21\x99\xbd\xaa\x0d\xc4\xad\xda\x2b\x7d\x50\x71\x9a\x46\xa8\xca\x21\x8c\xdb\x56\x15\xbe\x4c\x2a\x74\xac\x68\x8d\x41\xe5\x58\xaf\x9b\xa4\x11\xc0\xcc\x1b\xa6\x78\x4d\xa5\x40\x45\x79\xc7\x4d\xde\x18\x7d\x7f\x64\x03\xbb\xfc\xed\xa9\x0a\xac\x46\x68\x15\xba\x64\x6a\x29\x8d\x22\x80\xb9\xf3\x83\xef\x00\x8b\x79\xad\xf9\x71\xe3\xfd\x2d\x46\x3a\xda\xa3\x2a\x7c\x16\x7f\xf0\x7a\x84\x4d\xea\x2a\xa1\xff\x3f\xaf\xaf\xaf\x32\x88\x95\x0e\xc2\xf3\xde\xb0\x25\x62\xf9\xf0\xf9\xa0\x39\x6d\x1d\x11\x64\x0e\x92\xa2\xe0\x23\x16\x32\xd2\x5f\x3f\x18\xc7\x81\x1a\x83\x9d\xf4\x11\x37\x7b\x93\x4a\xc8\xf1\x99\xbe\xf5\x6c\x18\x97\xd5\x18\xbf\xdf\x62\xe2\xdd\xf3\xde\x78\xfc\x3b\x65\x75\x5e\x2b\xdd\x33\xf3\x0e\x93\x0b\xcb\x78\xd3\x48\x51\xf0\x8d\xc4\x80\xe8\x0c\xc0\x5c\x8b\xb0\x48\x8b\x62\x3b\xa0\xf8\x7b\x05\xb1\xef\x63\xa3\xe2\xec\xf2\xa4\x68\x83\xd0\x42\x3e\xfa\x73\x80\x2e\xd8\xf9\x56\x9b\x9a\xbb\x24\x7e\x66\x41\x58\x1f\x24\xdb\x36\x8d\x36\x0e\xcb\x0c\xb6\x5c\x4a\x2a\x59\xc2\x4d\xdc\x7f\x66\xe3\xec\xa1\x80\x64\x27\x28\x7c\xe6\xba\xa0\x3e\xea\xe8\x2c\xb7\xe4\xe4\x62\x62\x7b\x8d\xf3\xa2\x80\xd5\x93\xc5\x13\x9a\xfd\x93\xec\xe8\x25\x17\xe8\x91\x2d\x71\x64\x68\xbb\x9e\x25\x7d\xc2\x07\xa0\xe7\xe6\x83\xf4\xd3\xe6\x87\x68\xf4\x1a\x39\x2f\x4b\x83\xd6\x66\xe3\x09\x65\x68\x31\x50\x54\x8f\x21\x0a\x13\x10\xa1\x0d\xd8\xb1\x0d\xe4\x54\x61\x21\xa1\x69\xf4\x1f\xc6\x2c\x1a\x32\x1f\x02\x43\xc0\x46\x03\x4f\x41\xb7\xe7\x99\xb6\xac\xe4\x8e\x66\xfc\xac\x8b\xe4\x1d\xc0\x89\x44\x72\x5e\xf0\xbd\xea\x32\xc6\xf0\x8e\xde\x67\x34\xb7\x83\x35\x58\x41\x53\x70\x29\x13\xda\x6f\xf2\x12\x0b\x5d\x62\x36\x37\x39\x79\x4a\xef\x47\xfb\xd3\xaa\xbb\xb8\xbe\xce\x00\xe2\x42\xb7\xb2\xf4\x82\x0d\x37\x16\xc7\x71\x43\x66\x5e\x9e\x74\xc0\x29\x8a\xbe\x8e\x4e\x21\x53\xdb\x64\x33\xbc\x34\x2f\x1b\x2e\x8c\x9d\xab\x43\xa9\xbd\x81\x47\xe7\xc2\x44\x23\xef\x66\xc3\x99\x0a\x2b\x76\x5c\x55\x48\xaa\xce\xb4\x18\x0d\x5d\xe8\xac\xa7\xc2\x82\x06\xf9\x4d\x9b\x5d\x5e\x22\x36\xac\xd0\x75\xc3\x4d\xa8\x91\x99\x17\x63\xd7\x38\x79\x20\x58\x9b\x3c\x34\x23\xfb\xa2\x91\xee\xdf\x25\xb6\xf1\xad\x43\xc3\xfe\xcf\xbe\x32\x26\x33\x14\xc9\x29\x28\x7f\x1f\x20\xb3\x77\xb9\x50\xc2\xb1\x6e\xe5\xf4\x58\x4e\x6a\x86\xe6\xf6\x61\x87\x6a\xd8\x4a\xad\xe3\xc6\xd9\xac\x9b\xd2\x81\x72\x07\xe1\x76\xba\x75\xdd\xd2\x19\x1c\x62\x19\x74\x3b\x12\xb1\xd6\x89\x9a\x76\xe7\x3b\x34\xc7\x64\x79\x69\xcc\xe6\x6f\xf7\xfe\x92\x85\x87\xcb\xe0\x64\xe6\xf8\xdd\xaa\xc3\x6b\xd1\x39\x9a\x34\xb4\x3e\x8f\x4f\x7b\x96\xcf\x9e\x79\xd9\xcd\xa0\x50\x29\x68\x4c\x1a\x76\x84\xb3\x68\xf9\xea\x1d\x53\xd6\xec\xb8\x1d\x16\x28\xca\x99\xff\x3d\xb4\x8b\xfe\x72\x05\xb1\xd4\xd5\x64\xd0\x9e\xf3\xe4\xac\xc7\x05\x6d\x9a\xd3\xe1\x73\xe9\xac\xcf\xf7\xab\x64\xdd\x5a\x07\x1b\xda\x1e\xa5\xec\x3e\x2d\x02\x41\xb4\x01\xa9\xab\x0c\x36\xad\x83\x03\xb7\xa3\x48\xdf\x20\xfc\x2b\xe9\x69\xdf\xda\x69\xeb\x32\xa0\x89\x30\x0e\xa2\x69\x13\xa4\xfb\x79\x52\xac\xe3\xae\xb5\x7d\x24\x7e\xbe\xbd\xfd\xc0\x6e\x2e\xae\x3f\xbd\x7d\x7d\xc1\x3e\x5e\xad\x3f\xad\xdf\x5e\xae\x5f\x5d\x5e\xcc\x46\x54\x75\x9f\xe3\xbd\x70\xc9\xa8\x3d\x81\x31\xfd\x7a\xcc\x2d\x3a\x56\x6b\x83\xcc\x19\x81\x36\x79\x91\xce\x1b\x6c\xa0\xd8\x5c\x63\xa8\x33\xfa\x44\x4a\x46\x87\xfe\x6d\x7f\x7d\x80\x58\x42\x62\x60\x56\xff\xc2\xfc\x6b\x2c\x2c\x35\x8f\x10\xaa\x0f\x01\x7b\x17\xfd\x13\x00\x00\xff\xff\xcb\x98\x72\xb2\x2c\x0f\x00\x00") func etcNginxLuaBalancerLuaBytes() ([]byte, error) { return bindataRead( @@ -160,26 +159,6 @@ func etcNginxLuaConfigurationLua() (*asset, error) { return a, nil } -var _etcNginxLuaStickyLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x57\xdd\x6b\x23\x37\x10\x7f\xf7\x5f\x31\x08\x8e\xb3\x61\xb3\xf4\x1e\xee\x25\xc7\x3e\x84\x34\xc7\x85\x6b\x12\xa8\x73\x94\x92\x33\x8b\xb2\x9a\xb5\x75\xde\x48\xae\x24\x27\x31\xa5\xfd\xdb\x8b\x3e\xf7\x23\x1b\x3b\x69\x03\x7d\xb2\xad\x19\xcd\xfc\xe6\x37\x5f\x72\x23\x2b\xda\xc0\x0f\x2d\x05\x14\xa0\xf0\x8f\x2d\x57\x38\x7d\x5f\xd9\x83\xf7\xb3\x89\x97\x6a\xa3\x3a\x42\xa2\x50\x9b\x5d\xae\x8d\xe2\x62\x49\x92\xce\x8a\x7e\x28\x2b\xb5\xdb\x18\x39\xa2\xbb\xa2\x1f\x92\xe6\x1d\xfb\xf8\xac\xe2\x1d\xfb\x48\x66\x93\xe4\x96\x57\xeb\x5d\xa9\x51\x6b\x2e\x85\x86\x02\xc4\xf2\xd1\xda\x52\xc8\xf2\x81\x30\xde\xf9\xf9\xec\xf3\xc9\xb7\x5f\xae\xcb\xf9\xd9\x7c\x7e\x7e\x75\x59\x9e\x5e\x5d\x7d\x3d\x3f\x2b\x2f\x4f\x2e\xce\xa0\x00\xa2\xe4\xd6\x20\xd9\xaf\xfb\xe5\x64\xfe\xc5\xea\x5a\x2c\x93\xa3\x23\x38\xdd\x2a\x85\xc2\x34\x3b\x98\x5f\x9f\x9f\x7e\xfd\xbd\xbc\x3e\xbf\x38\xbb\xfa\x76\x0d\x02\xef\x51\x01\x3e\x6e\xb8\x42\x1d\x6c\x0e\x54\x0a\xf8\x29\x22\x2b\x2f\xa0\x80\x3f\xff\x8a\x3f\xeb\xad\xa8\x0c\x97\xc2\xd1\xc1\xf8\x12\xb5\x99\x2a\xfa\x30\x9b\x00\x24\x9a\xa0\xe8\x90\x75\x2c\xf0\x61\x6a\xc5\xbc\x06\x21\x8d\x93\x9b\x15\x8a\x09\x00\x80\x42\xb3\x55\x02\x04\x6f\x32\x07\xfc\x18\x6a\xca\x1b\x64\x60\x24\x54\x0a\xa9\x41\x90\xb7\x3f\xb0\x32\x64\x02\x80\x82\x25\x2f\x72\xed\x9d\x1c\x6f\x37\x8c\x1a\x8c\x10\x82\x0f\xb9\x7e\x99\x0b\xca\x18\x30\x6a\xe8\xd0\xba\x8f\x2b\x78\xa8\xb9\xa0\x4d\x8c\x20\x4a\x0a\x6b\xf0\x55\x71\xf8\x9b\xad\xa7\x70\x45\x1b\x95\x1b\x59\xae\xf0\x71\xea\x35\x66\x99\x35\x33\xb1\x4a\x43\xca\x5d\xad\x8e\x71\x6e\x05\x50\x74\x6b\x79\xc8\xba\xd3\x18\x87\x6b\x45\xaf\xe3\xdd\xdd\x78\x1d\xf1\x43\x27\x07\x99\x77\x17\x5e\x4d\xfd\x33\xb1\xbc\x01\xf7\x4b\x34\x65\x25\xe5\x9a\x63\x29\xe8\x1d\x4e\x6f\x69\xb5\x46\xc1\xda\x1c\xd8\x53\x28\x20\x9c\xdf\x90\xd0\xe1\x27\x75\xcd\x05\x37\xbb\x53\x29\x6a\xbe\x24\x8b\x1b\xe2\xad\xcc\xfb\x62\x2b\xb0\x16\xc8\xa2\x85\xe7\x2c\x4a\xb5\x6f\x36\x8c\x42\xe5\xba\xbc\xa7\x0d\x67\x25\x0a\xb6\x91\x5c\x98\x08\x36\xb3\xb4\x2b\xd4\x3a\x83\x8d\x54\xc6\x62\xaf\xa5\x82\x32\x03\xdc\x00\x17\xc0\x37\x94\x2b\x1d\xb5\xf3\x78\x5d\xcf\x80\x49\xc7\x35\xaf\x01\x37\x79\x30\x62\x33\x11\xbf\x52\xc1\xac\xc4\x5a\xb5\xc7\xee\x33\x65\x28\x05\x64\xd4\x16\xdd\x89\xcf\x42\x2f\x17\x35\x6d\x34\xfa\x70\x52\x20\xe5\x45\xce\x75\xe9\x27\x66\x97\xf0\x70\xe5\x30\xd5\x9e\x51\x8b\x28\xb0\x4e\x9e\x7a\xb0\x89\x1d\x12\xd5\x66\xb5\x93\x72\x28\x0e\x17\x41\x10\xae\x71\x07\xc9\x67\x49\x20\xcf\xbb\x86\x92\x76\x74\x1b\xf4\xed\x96\xb8\xa7\xea\xa6\x35\xb2\xf0\x95\xdf\xd7\x1b\xd4\xbf\xbd\xd5\xc8\xe5\xd4\x7e\x9e\x5f\x7e\xbe\xca\xc0\x6f\xb8\xbc\x96\xea\x8e\x9a\x69\x48\x01\xb9\x09\x60\x8b\x77\x3a\x03\x1a\xa8\x2a\xbc\xaf\x45\x80\x07\xdf\xc9\x3b\xfd\x9d\x00\xd7\x7e\x68\xa0\x71\x05\x62\x56\x5c\xbb\x8d\x67\x9b\x28\x0b\x06\x63\x95\xd8\x88\xe2\x59\x3f\x48\x80\xd9\x6c\xd0\xa2\x21\xeb\x4f\x19\xf0\x98\x6d\xdf\xf7\xf7\xe3\xf1\x12\xcd\xb4\x1b\xff\x6c\x40\x49\xbc\xf8\x4a\x56\x0e\xd0\x21\x64\xf2\x00\x54\x6b\xbe\x14\xc8\x48\xd6\x8b\xf9\xc5\xb1\x41\xe1\x9e\x29\x39\xc3\x4a\x32\x9c\x0e\x90\xb7\xb5\xe3\x7a\x16\x8a\x7d\xed\x1b\x4f\xf2\xd4\xc7\xe9\x24\x36\x74\x18\xc4\xde\xd8\x5b\xd1\x11\x29\x68\x63\x72\x15\x02\x8d\x14\x4b\x54\xde\xd9\x38\x3d\xc3\x74\x32\x6c\xd0\xe0\x93\x8c\x8e\xf0\x98\x8e\xa2\xee\xd3\xd6\xd5\xdd\xd6\x8d\x5f\x12\x8c\x7f\xdd\xc4\x28\xdc\x0e\x45\x4b\xb8\x52\x7b\x6a\xd5\xa5\x15\x45\x2f\xad\xad\x99\x15\xd5\xab\xff\xb6\x10\xac\x05\xb2\x98\xf8\xac\x7a\x73\x85\xdf\x71\xa4\x4d\x6d\x1f\x6d\x7c\x05\x84\x57\xc2\x48\xb1\xa1\x9d\xb3\x61\x98\x3b\x9b\x7f\x17\x7b\x5f\x94\x9d\x31\xde\xad\xa2\xdf\x4e\x7e\xbd\x7c\x66\xd4\x1c\x1c\x36\x81\x89\x23\xff\xfb\xc8\xa1\xe8\x4f\x1e\x57\x51\x19\x30\xac\xe9\xb6\x31\x96\x6d\x23\xe1\x9d\x4e\xc3\x67\x7c\xfc\x80\x0b\xa8\xfd\xb5\x27\xac\xa0\x13\xaa\xd4\xd7\xdb\x08\x97\x9d\x47\xee\x18\x95\xee\x9a\x9d\x46\x4a\x59\x1a\x9f\x9d\x40\x63\x64\x1d\xe0\xa8\xf3\x54\x72\xcd\x97\xca\xef\xd8\xf1\xd0\x8f\xdf\x02\xe8\xcd\xa3\x76\x16\xbd\x49\xe7\xdb\x04\x50\x10\xf8\x90\x50\x8c\x75\xbb\x75\xb1\x42\xca\x50\xdd\x90\x39\x9a\xa3\x53\xbf\x72\x17\x50\xf4\x3a\x30\xcf\x81\x14\x6e\x27\x26\xba\xdd\xd9\x27\xd2\xbe\x67\xb7\x55\xe5\xc6\x5b\x2d\x55\xc5\x6f\x1b\x5b\xb0\xe9\x0c\x95\x6a\x05\x23\x1b\x43\xbb\x8d\xd1\x26\xb2\x9f\xb7\x6c\xf0\x57\xa7\xfb\x46\xf6\x1e\xfe\xe7\x14\xa6\xa2\x4a\x21\xbe\x18\xcf\xcb\x56\xfd\xf0\xef\xa9\xff\x63\x0a\x8c\x57\x6e\xac\xd7\xdb\xa6\xf9\xd4\x0e\xfa\x80\x62\x07\xf2\x1e\xd5\x83\xe2\xc6\xa0\x18\x7d\x03\xb4\x0b\xdf\x46\xe0\xaa\x2f\x0c\xf0\xf2\x62\xf2\x4f\x00\x00\x00\xff\xff\x7f\x7e\xd2\xe9\xae\x0f\x00\x00") - -func etcNginxLuaStickyLuaBytes() ([]byte, error) { - return bindataRead( - _etcNginxLuaStickyLua, - "etc/nginx/lua/sticky.lua", - ) -} - -func etcNginxLuaStickyLua() (*asset, error) { - bytes, err := etcNginxLuaStickyLuaBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "etc/nginx/lua/sticky.lua", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - 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) { @@ -200,7 +179,7 @@ func etcNginxLuaTestBalancerChash_testLua() (*asset, error) { return a, nil } -var _etcNginxLuaTestBalancer_testLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5a\x6d\x8f\xe3\xb6\x11\xfe\xee\x5f\x31\xd0\x97\x48\x85\xaa\xdd\x4d\x10\x20\xd8\xc2\x28\xae\xc5\xb5\x3d\x20\xb8\x16\xd7\x34\xfd\x70\x08\x04\x5a\x1a\xdb\xac\xb9\xa4\x42\x52\xeb\x35\x16\xfe\xef\x05\x49\x89\xa2\xde\xfc\xd2\xde\x6e\x12\xdc\x1d\xb0\x67\x8b\x9a\x37\x3e\x33\xf3\x90\xa2\xcc\x44\x41\x18\x14\xfb\x12\x96\x40\x45\x56\x89\x0a\x79\x1c\x55\xfb\x32\x4a\xee\x25\x92\x32\xfe\xea\x77\xec\xab\x64\x51\x91\x62\x47\x36\x98\x55\x44\x6f\x61\x69\xe5\xb3\x0c\xa2\x1b\x29\x84\x5e\xab\x1b\xd4\xc5\x0d\xdf\x50\xfe\x74\xc3\x6a\x72\xf3\xc7\x8c\xd5\xe4\x0f\x91\x91\x08\xf5\x16\x0b\xe7\x6c\x45\x18\xe1\x05\xca\x14\x1e\x44\xb1\xcb\x8b\xff\x28\xc1\xdb\xef\x82\xaf\xe9\xa6\xb9\x50\x9a\x16\xbb\x43\x73\xb1\x22\xc5\x0e\x79\xa9\x9a\x4b\x26\xeb\x82\x14\x5b\x4c\x81\x89\x62\xd7\x0e\x9a\xaf\x0b\x70\x17\x7c\xf3\x94\x0f\x3c\xe1\xfe\x81\xb4\x41\xac\x6b\x5e\x68\x2a\x38\x94\xb4\xd0\xf9\x06\x39\x4a\xa2\x85\x8c\x1f\x09\x53\xc9\x02\xc0\x49\xe5\xe6\x2e\x2c\xe1\x19\xf2\x9c\xf2\x12\x9f\xcc\xf7\x05\xd8\x7f\x1b\x34\x77\x5a\x3b\xb1\x42\xb6\x4e\x61\x87\x87\xa4\xb9\x0f\x20\x51\xd7\x92\x83\xb9\x93\xe5\xc6\xf0\xc7\x1d\x1e\x7e\x6a\x6e\x23\x2f\xd3\xe6\xab\x9a\xb1\x94\xc2\x23\x61\x9d\x39\x18\x5a\x82\xa5\x11\x08\xee\x37\x0e\xb5\xac\x31\x05\x4e\x59\x0a\x6b\xc2\x14\x8e\x3d\x96\xc8\x50\xe3\xe5\xe1\xdf\x2b\xd4\xb1\x8d\x88\x53\x1f\x51\x60\x6f\xcd\x6a\xb5\xcd\x09\x63\x43\x93\x43\x6b\x63\x55\x3b\x1d\x37\x13\x65\x87\x8e\x0b\xf7\xe7\xdd\xeb\x07\xd4\x44\x93\x15\xc3\xf8\x39\x94\x3e\xa6\x2e\x3f\xc9\x02\x79\x39\xca\x6b\x53\x30\x41\x6a\x39\x79\xc0\xd4\xb8\xae\x04\xe5\x5a\xa5\xc0\x56\x39\x61\x9b\xa4\xf3\xe5\x52\x6b\xe4\x60\x69\x3f\x5c\x90\x5e\x05\x96\x81\xba\xbd\xf5\x31\x62\x82\x94\xbf\x6f\x0a\x2d\x32\x29\x71\x56\x53\x3b\x8b\x20\xb0\x12\xd7\xa4\x66\x3a\x0f\x8d\x19\x7f\xcf\xa4\x2c\x25\x2a\x73\x19\xdd\xde\xde\x66\xcd\x5f\x94\x42\x25\xa4\xa9\x8b\xe8\xbb\xdb\xef\x6e\xa3\x63\x3a\x2b\x7b\xd7\x97\xbd\x33\xb2\xc7\xa1\xdb\xb6\x7f\x1a\xaf\xb6\x1f\xa4\x6c\x87\x61\x39\x81\x57\x34\x10\x8a\xd2\xf1\x24\x52\x88\xa4\xa8\x79\x99\x4b\xb1\xa2\x3c\x4a\x7c\xfb\x99\x5e\xbb\xc0\x7a\x28\x36\x63\xdf\x88\x18\xc3\xc7\x51\x8a\x29\xa7\x3a\x4e\x5a\x8f\x96\x47\xcc\xf4\x8e\x7e\xc4\xb2\x49\x6f\xc8\x71\x4a\x6f\x28\x24\x8a\xde\x0d\xe3\xb8\x37\x20\x51\xe9\xc3\xb4\x6c\x00\xef\x80\x50\x86\x09\xf0\xf1\xb6\x14\xe6\x29\x85\xe3\x3e\x68\x1f\x88\x93\xb6\x2c\xfb\x1e\x4c\x4d\xb9\x0e\x31\x7c\xe7\xb5\x9b\x0b\xdf\x7d\x5e\xdb\xf7\x5a\xcd\x4f\xc9\x34\x36\x3d\x91\x9e\x0f\xcb\x4a\x75\x9a\xf9\x5f\x33\xbe\xe9\x08\x52\x6d\x89\xc4\x32\xe0\xcb\x16\xb7\x16\xd7\x01\x4e\xcf\xc7\x24\x9d\x92\xcc\x19\x51\x3a\xd7\xa2\x2e\xb6\x58\xe6\x44\x9f\xd0\x3c\xba\x8f\x47\xe2\x72\x93\x36\xb8\x6c\x4e\xc3\xf2\xef\x37\x1f\xde\x9b\xd6\xd9\x13\xc9\x23\x37\xf4\xee\xfd\x5f\xfe\x6e\x86\x28\x5f\x8b\x66\xe8\xed\x87\x0f\x66\x04\xa5\x6c\x06\xfe\xf6\xc3\x0f\xff\xc8\xff\xf9\xf6\xc3\x8f\xef\xfe\xfc\x36\xff\xd7\xfb\x37\x3f\xbe\x79\xf7\xfd\x9b\x3f\x7d\xff\x16\x96\xf0\xed\xed\x37\x0d\x71\x3c\xd1\x3e\xb3\x6b\xa2\x6b\x35\x0c\xc1\x80\xd7\xae\x93\x86\x4d\xb0\xfc\x18\xf1\xcd\x53\xd6\xc2\x60\x59\x65\x54\xaa\x13\x4a\xb6\x3e\xb3\xb6\xae\x3a\xb5\x76\x64\x42\xc5\x36\x4d\x27\x69\x2f\xe7\x2d\x8b\x62\x17\x58\x15\xc5\x6e\x42\xb4\x8d\x2f\xb3\x7d\xeb\xa5\xed\xda\x7b\x42\xda\x7a\xe8\xc4\xfb\xad\x36\x15\xb8\xed\xed\x5a\x12\x03\x6c\x30\x01\x3b\x3c\x21\xef\x1a\xbf\x13\x74\xd7\x8b\xae\xd8\x60\x09\x12\x7f\xae\xa9\xc4\xd8\x47\x15\x35\x4b\x4b\x89\xaa\x90\x74\x85\x71\xf4\xd1\xd7\xa6\x46\xa5\x7f\x8a\xd2\xa0\xb2\x16\x76\x25\xaf\xab\xb8\x37\x04\x1d\x4d\x21\x2f\x93\xc5\x02\x40\x23\x91\xa5\xd8\xf3\xa1\xa0\xa3\xb7\x26\x72\xcb\xd4\xfd\x3a\x30\x64\xdb\x4f\x71\xda\x24\xb0\xbb\x63\x52\x94\xc2\x20\x0b\xe9\x00\xae\x14\x5a\x3c\x8e\xd6\xf1\x5a\x48\xa0\x69\xeb\x39\xb7\x0b\x20\xe5\x40\x2b\x42\xa5\x8a\xdb\x80\x12\x28\x45\xd3\xa1\x03\x74\x43\x45\x83\x30\xa7\xac\x5d\x38\x83\x69\x77\x28\xfa\xe8\x0a\xc2\x58\x9c\xdc\x0f\x61\x9c\x01\x72\x82\xb0\x33\x85\x3a\x7f\x10\x12\x73\x2d\xa9\xc5\x6c\x82\xa8\x5c\x18\xf3\xfa\x45\x2d\x25\x72\x9d\x57\x68\xcb\xe0\xbc\x05\x03\x6a\x46\xd6\x1a\x65\x6b\xe8\xb4\x5a\x8b\x00\xc0\x0a\xd7\x26\x58\x24\xc5\x76\x3c\x3b\xc7\xa0\xd9\x06\x75\x5e\x6d\x89\xc2\x00\x49\x7f\xb3\x25\xb7\x30\x9c\x76\x69\xc8\xda\xdd\xd1\x70\xcd\x09\x85\x5d\xe2\x33\xaa\xba\xb5\xd0\x07\xb2\xf2\x91\xdb\x7d\xe3\x44\xfc\x5d\x0e\x6d\x84\x4b\x26\x36\xe3\xe4\x9d\x99\xe6\xe4\x44\xc7\x04\x1d\x19\xdb\x01\xf2\x5d\x10\x00\x54\xc7\x91\xdb\x67\x2d\x4d\x2e\x52\xb0\x2b\x45\x3f\x23\x7b\xa2\xc0\xd4\x17\x96\x53\x11\x86\x80\x66\x95\x14\x4f\x87\xbc\xae\x94\x96\x48\x1e\xf2\x66\x03\x38\xb1\x43\x59\x78\x6d\xd7\xab\x63\xb7\xb9\xaa\x0c\xa4\xaa\x3a\x64\x82\xc7\xde\x42\x0a\x51\x4f\x2c\x4a\x3a\x53\x44\x29\x94\x3a\xdb\x12\x95\x73\x91\xa3\x94\x42\xaa\xb8\xd7\x22\xc9\x50\x56\x55\x87\x78\xda\x77\x92\xed\x89\xca\xdd\xbc\xe3\xe4\x34\x74\xc1\xce\x6d\x16\x41\x2e\xf4\xa7\x40\x31\xd8\x45\xfe\x56\x30\xe4\x42\x4f\xe2\x78\xba\x21\x02\xb2\x7e\x99\xae\xf0\x0e\xce\xb7\x46\x2f\xbf\x96\xdc\x4c\x46\x55\x5d\x14\xa8\xd4\xba\x66\xec\x60\x78\xf6\xa5\xf2\xda\x6d\xf9\xf5\x44\x42\xbb\xe7\xf9\x68\x83\x3a\x4a\x06\xca\x7d\x5a\x9f\xd0\xef\x3f\xde\x47\x7d\xf9\x49\x73\x21\xcb\x5f\x66\x30\xd4\x08\x8b\x6d\x62\x87\x92\x8d\xd7\x81\x80\x4d\x2f\x7d\xc6\x0b\x52\xfa\x3f\x97\xf4\x00\xf6\x90\x0f\xf2\x3d\xd5\xdb\xf8\x81\xe8\x62\x6b\xf8\xdf\x3d\x52\x27\xe9\x38\x95\x93\x86\xc7\x29\x19\xdb\xbe\x9b\xd5\x1c\xa2\x3f\xd6\x1d\x20\xe3\x20\x19\xa2\xee\x97\xba\x0d\xea\xfb\x82\x21\x91\x41\xcd\x9e\xdb\x1d\x5c\xa8\x10\x86\xea\x55\x3e\x75\xf2\xc7\x0f\xed\x5f\x92\xdf\x21\xe3\x20\x39\xb3\x7c\xb9\x35\xe1\x65\x78\x6d\x66\xd5\xef\x76\x7f\x57\xa7\xfc\xee\x6e\x90\xf2\x6f\x9a\x94\x7f\x36\xb4\xf9\xda\x35\xdd\xcb\xe1\x2f\x5b\xd5\x2e\xf9\x2e\xeb\x73\x55\xed\xb6\xe3\x4b\x77\x78\xeb\x0a\x49\x81\xd2\x42\x62\x19\x9c\x40\x12\x5e\xbe\xe6\x52\x7e\xc5\x23\x83\x09\xbc\xc7\x61\xa1\xae\x49\x5e\x3b\x89\xc9\x7d\xcd\x24\x4b\x0e\x5b\xe6\xeb\x2f\x2d\xf3\xb9\x2c\x03\xbe\x61\xbe\xbe\xac\x61\x4a\x81\xee\x61\xa5\x7d\x6d\x30\x68\x1c\x7f\xb6\xac\x40\x0b\xb0\x3b\x63\x70\x67\xd6\xbf\xdd\x9e\xe1\x94\xcd\x2a\xab\x19\xe5\x55\xef\x70\xe2\xb3\x69\xa4\x2f\x5b\xf6\x57\xdc\xb2\x4f\xb7\xeb\x9a\x50\xa6\x60\xbf\x45\x0e\x5c\xb4\xa5\x06\xf8\x44\x95\x56\x2f\xd4\x84\xa3\x83\xb1\xe7\xe3\x27\x2f\xf9\x5f\x94\xec\x89\xc4\x1c\x7f\xae\x09\x8b\x0d\x50\xee\xf5\x42\x0a\xdf\xde\x7e\xf3\xfa\x75\x36\x5d\x2d\xd7\x1e\xa2\x18\x06\xa7\x1c\xdc\xf9\x07\x13\x1b\x10\x12\x4e\x1d\xa9\x98\xc2\x6a\xf7\x4a\x0e\xb1\x93\xa5\x74\xe6\x6c\x85\x8b\x0a\xa3\xb9\x8e\xb6\xe6\xfb\xf9\x30\xf8\xd4\x4a\xc3\x0a\x9b\x33\x32\x13\xbb\x7f\xa1\x20\xa4\x99\x41\x0a\xab\x5a\x07\x87\x91\x40\xf9\x3d\x58\x47\xd3\x80\x9c\x3c\x2f\xa7\x9c\xea\x7c\x2f\xe4\x0e\xe5\x35\xc7\xe6\xcd\xec\x35\x7d\x70\xaf\x2d\xfd\xf4\xf0\x11\x65\x6f\x69\xa2\x5c\xa3\x7c\x24\xcc\x59\xee\x8e\x83\x6b\x5e\xc4\x49\x80\x4c\xef\xfc\xd9\xbe\x83\xc8\x4a\x2c\x44\xd9\x03\xf6\xc9\xeb\x3f\x5d\x7b\x14\x7e\xc5\xb9\xf6\x54\x19\xa9\x03\x2f\xbc\xd4\x24\x52\xcd\x16\xc2\x6c\xa0\xb1\xec\x68\xc9\x28\x02\x55\xed\xab\xa0\x99\x43\xcf\xe0\x55\x93\x2d\xa9\xd6\x53\x5e\x12\x4d\x26\x4b\x6b\xf4\x1a\xfe\xc4\xea\xab\xce\x51\x91\xb2\x54\x74\x21\x6f\x04\x25\x73\x92\x14\x54\x48\x0a\x73\x6d\x7b\xe6\x8c\xb1\xae\x4a\xa2\x51\x79\x72\xb7\xa8\xbe\x14\xa4\xcf\x23\x50\xb3\xe1\xaf\x1a\x8e\xe3\xed\xd1\x15\x4b\xc2\x85\x79\xe8\x2b\xdb\x87\x4e\xf7\x73\x98\x9e\x6e\xd3\x82\xee\xad\x78\xd6\x7b\xc3\x9d\x42\xe4\x7f\x3f\x33\x6d\x8f\xe9\x6b\x6d\x0e\xdf\x9a\x0f\x7c\xbc\xf2\xbe\x68\xca\x8b\x44\x53\x99\xf3\x5b\xd3\x97\xa9\x6e\x2f\x03\x70\xc1\xea\x77\xae\xc0\x32\xf7\x93\xa2\xa1\xe2\xfc\xab\x06\x9f\xc4\xd9\x36\x1b\xeb\xf4\x92\x7f\x6d\x7b\xba\xfa\xfa\x55\xf4\x65\xef\x17\x41\x5f\x3a\xf3\x5c\x67\xfe\xfa\xea\x3e\x4c\xe0\xff\x5b\xf9\xa7\xfc\x5f\xd5\x0a\x97\x18\x9a\xdc\x60\xd9\xff\xfe\x1b\x00\x00\xff\xff\xb9\x5a\x47\x39\xfe\x2a\x00\x00") +var _etcNginxLuaTestBalancer_testLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\xe9\x8b\xe4\xb8\x15\xff\x5e\x7f\xc5\xc3\x5f\xd6\x0e\x8e\xbb\x9b\x61\x60\xe9\x50\x84\x49\x98\x24\x03\xcb\x24\x4c\x36\x9b\x0f\xc3\x62\x54\xf6\x2b\x97\x52\x2a\xc9\x2b\xc9\x5d\x55\x34\xf5\xbf\x07\x49\x3e\xe4\xab\x8e\xd9\xee\x99\x40\x76\x61\xb6\xcb\xd2\xbb\xf4\x7b\x97\x0e\x26\x32\xc2\x20\xdb\xe7\xb0\x04\x2a\x92\x52\x94\xc8\xc3\xa0\xdc\xe7\x41\xf4\x28\x91\xe4\xe1\x77\xbf\x63\xdf\x45\x8b\x92\x64\x5b\x52\x60\x52\x12\xbd\x81\xa5\xa5\x4f\x12\x08\xee\xa4\x10\x7a\xad\xee\x50\x67\x77\xbc\xa0\xfc\x70\xc7\x2a\x72\xf7\xc7\x84\x55\xe4\x0f\x81\xa1\xf0\xf9\x16\x0b\xa7\x6c\x45\x18\xe1\x19\xca\x18\x76\x22\xdb\xa6\xd9\x7f\x94\xe0\xcd\x6f\xc1\xd7\xb4\xa8\x3f\x56\x24\xdb\x22\xcf\x55\xfd\xc9\x64\x95\x91\x6c\x83\x31\x30\x91\x6d\x9b\x41\xf3\x73\x01\xee\x83\x17\x87\x74\x20\x1c\xf7\x3b\xd2\xe8\x5d\x57\x3c\xd3\x54\x70\xc8\x69\xa6\xd3\x02\x39\x4a\xa2\x85\x0c\x9f\x08\x53\xd1\x02\xc0\x51\xa5\x66\x16\x96\xf0\x0c\x69\x4a\x79\x8e\x07\xf3\x7b\x01\xf6\xbf\x02\xcd\x4c\x23\x27\x54\xc8\xd6\x31\x6c\xf1\x18\xd5\xf3\x00\x12\x75\x25\x39\x98\x99\x24\x35\x82\x3f\x6f\xf1\xf8\x73\x3d\x8d\x3c\x8f\xeb\x9f\x6a\x46\x52\x0c\x4f\x84\x75\xe2\x60\x28\x09\x96\x86\xc0\x9b\xaf\x15\x6a\x59\x61\x0c\x9c\xb2\x18\xd6\x84\x29\x1c\x6b\xcc\x91\xa1\xc6\xeb\xcd\x7f\x54\xa8\x43\x6b\x11\xa7\xad\x45\x9e\xbc\x35\xab\xd4\x26\x25\x8c\x0d\x45\x0e\xa5\x8d\x59\xed\x72\xdc\x4a\x94\x1d\x3a\x2d\xdc\xbf\x56\xbd\xde\xa1\x26\x9a\xac\x18\x86\xcf\x3e\xf5\x29\x76\xfe\x89\x16\xc8\xf3\x91\x5f\xeb\x80\xf1\x5c\xcb\xc9\x0e\x63\xa3\xba\x14\x94\x6b\x15\x03\x5b\xa5\x84\x15\x51\xa7\xcb\xb9\xd6\xd0\xc1\xd2\xfe\x71\x46\xb6\x2c\xb0\xf4\xd8\xed\xd4\xe7\x80\x09\x92\xff\xbe\x0e\xb4\xc0\xb8\xc4\x49\x8d\xed\x2a\x3c\xc3\x72\x5c\x93\x8a\xe9\xd4\x17\x66\xf4\x3d\x93\x3c\x97\xa8\xcc\x67\x70\x7f\x7f\x9f\xd4\xff\x82\x18\x4a\x21\x4d\x5c\x04\xdf\xdf\x7f\x7f\x1f\x9c\xe2\x59\xda\x87\x3e\xed\x83\xa1\x3d\x0d\xd5\x36\xf9\x53\x6b\xb5\xf9\x20\x65\x33\x0c\xcb\x09\xbc\x82\x01\x51\x10\x8f\x17\x11\x43\x20\x45\xc5\xf3\x54\x8a\x15\xe5\x41\xd4\xa6\x9f\xc9\xb5\x2b\xa4\xfb\x64\x33\xf2\x0d\x89\x11\x7c\x1a\xb9\x98\x72\xaa\xc3\xa8\xd1\x68\x4b\x87\x59\xde\xa9\x1d\xb1\x05\xa4\x37\xe4\x57\x85\xde\x84\xd1\xd2\x26\xb7\x3a\xf2\xcc\x8f\xe4\x55\xd4\x44\x88\x71\xa8\x0b\x4f\x07\x0e\x2a\x7d\xec\x09\xbc\xcc\xef\x02\x87\xac\x35\xca\x86\xd3\xa3\x85\x70\x4e\x97\xe7\xc1\x41\xcd\x1a\xfa\xb8\x85\xa4\xa9\x92\xad\x61\x1c\xf7\xd3\xba\xfa\x1a\x3a\xcd\xa6\xa4\xb6\xdc\xf5\x47\xbb\xac\xf1\xaa\x2a\x7e\x8e\xc6\x5f\x4d\x4f\xf0\xac\x59\x96\xaa\xe3\x4c\xff\x9a\xf0\xa2\xab\xc1\x6a\x43\x24\xe6\x5e\x49\x6e\x1c\xd1\x78\x73\x80\xd3\xf3\x29\x8a\xa7\x28\x53\x46\x94\x4e\xb5\xa8\xb2\x0d\xe6\x29\xd1\x67\x38\x4f\xee\xcf\x13\x71\xd1\x13\xd7\xb8\x14\xe7\x61\xf9\xf7\xbb\x4f\x1f\x4d\x76\xee\x89\xe4\x81\x1b\xfa\xf0\xf1\x2f\x7f\x37\x43\x94\xaf\x45\x3d\xf4\xfe\xd3\x27\x33\x82\x52\xd6\x03\x7f\xfb\xf1\xc7\x7f\xa4\xff\x7c\xff\xe9\xa7\x0f\x7f\x7e\x9f\xfe\xeb\xe3\xbb\x9f\xde\x7d\xf8\xe1\xdd\x9f\x7e\x78\x0f\x4b\x78\x7b\xff\xa6\xae\x4d\x07\xda\x6f\x1e\x9a\xe8\x4a\x0d\x4d\x30\xe0\x35\xdd\xd7\x14\x2c\xcc\x3f\x07\xbc\x38\x24\x0d\x0c\xb6\x70\x8d\x12\x64\x82\xc9\x06\x7c\xd2\xc4\x55\xc7\xd6\x8c\xcc\xb2\x28\x2d\x29\x2f\x2c\xc3\xf3\x94\x35\x35\xd5\x86\x3c\x5c\xa2\xd9\xe5\x6f\x2f\x91\x64\x42\x6c\x29\xce\x53\xd9\x52\xd1\x19\x6f\x3f\xe7\x17\x2b\xb2\xad\xb7\x50\x91\x6d\x27\x48\x1b\xc8\x12\x5b\xad\x5a\x6a\xbb\xe3\x38\x43\x6d\x35\x74\xe4\xfd\x72\x32\x65\xb8\xad\x68\x95\x24\xc6\xd7\xde\x02\xec\xf0\xa2\x0b\x6b\x58\x82\xc4\x5f\x2a\x2a\x31\x6c\x95\x05\x75\x9f\xcc\x51\x65\x92\xae\x30\x0c\x3e\xb7\x59\xa0\x51\xe9\x9f\x83\xd8\x8b\xe1\x85\xdd\x96\x54\x65\xd8\x1b\x82\xae\xe6\x22\xcf\xa3\xc5\x02\x40\x23\x91\xb9\xd8\xf3\x21\xa1\xab\xd5\xf5\x02\x6c\xdb\xe9\x47\x9c\xe9\x1c\xfd\x60\x8a\x6b\xbf\x74\x33\x06\xf9\x18\x06\xe0\xc6\x03\x14\x4e\x56\xdd\x5a\x48\xa0\x71\xa3\x2f\xb5\x3d\x9c\x72\xa0\x25\xa1\x52\x85\x8d\x19\x11\xe4\xa2\xae\x00\x03\x68\x7d\x46\x83\x2b\xa7\xac\xe9\xfd\xde\x62\x3b\xec\x5a\x9b\x32\xc2\x58\x18\x3d\x0e\xc1\x9b\x81\x6f\xa2\x0d\x25\x0a\x75\xba\x13\x12\x53\x2d\xa9\x45\x6a\xb6\x17\xcc\xf3\x67\x95\x94\xc8\x75\x5a\xa2\x75\xfe\x65\x09\x06\xca\xe4\xea\x26\xd4\x21\x00\xb0\xc2\xb5\x31\x16\x49\xb6\x19\xaf\xce\x55\xe8\xa4\x40\x9d\x96\x1b\xa2\xd0\x43\xb2\x9d\x6c\x8a\xa7\x6f\x4e\xd3\x7a\x92\x66\x83\x37\xec\x69\x03\x23\x3a\x47\x58\x35\x4b\x26\x8a\xb1\x07\x2e\xd8\x3a\x69\xed\xb8\x8a\x07\x46\xb6\x07\x5f\x67\x04\x00\xd5\x61\xe0\xf6\x7b\x4b\x03\x68\x0c\xb6\x9d\xf4\x61\xdd\x13\x05\x26\x48\x30\x9f\xb2\xd0\x47\x25\x29\xa5\x38\x1c\xd3\xaa\x54\x5a\x22\xd9\xa5\xf5\x46\x74\x62\xa7\xb4\x68\xb9\x5d\x9a\x8d\xd5\xa6\xaa\x3c\xc2\x12\x54\x79\x4c\x04\x0f\x5b\x09\x31\x04\x3d\xb2\x20\xea\x44\x4d\x94\xa0\x84\xaa\x94\x94\x25\xa3\x99\xd9\x7e\x4f\x6f\x69\xec\x11\xc3\xc3\x07\x80\x28\x85\x52\x27\x1b\xa2\x52\x2e\x52\x94\x52\x48\x15\xf6\x12\x26\x1a\xd2\xaa\xf2\x18\x4e\x2f\x22\x4a\xf6\x44\xa5\x0e\xc0\x30\x3a\xef\x03\x6f\x2b\x3a\xeb\x0a\x2e\xf4\x4b\xb8\xc3\xdb\x16\xff\x2f\x39\xc3\x1c\xfd\x5e\xdb\x17\x5c\xe8\x49\x7f\x9c\xcf\x50\xaf\xf0\xbf\x4e\x9a\xb6\x0a\x2e\xe7\x6a\x2f\x4e\x6c\xc9\x34\x91\xa1\xaa\x2c\x43\xa5\xd6\x15\x63\x47\x53\xbd\x5f\x2b\x3e\xba\xb3\x90\x9e\x08\x8c\xee\xa2\x23\x28\x50\x07\xd1\x80\xb9\xdf\x2c\x26\xf8\xfb\xf7\x1e\x41\x9f\x7e\x52\x9c\xdf\x3b\xae\x13\xe8\x73\x5c\x0a\xda\x71\x77\xf1\xc2\xf5\xda\xc3\xef\x4b\x84\xf4\x00\x76\xbf\xae\xa4\x7b\xaa\x37\xe1\x8e\xe8\x6c\x63\x92\xcc\xdd\x35\x44\xf1\xd8\x95\x93\x82\xc7\x2e\x19\xcb\x7e\x98\xe5\x1c\xa2\x3f\xe6\x1d\x20\xe3\x20\x19\xa2\xde\x36\xd0\x02\xf5\x63\xc6\x90\x48\x2f\x66\x2f\xed\x39\xae\x64\xf0\x4d\x6d\x59\x5e\xda\xf9\xe3\xdb\x8c\xdf\x9c\xdf\x21\xe3\x20\xb9\xd0\x06\x5d\x6f\x79\x9d\xba\x36\xb3\x0d\xe9\xf6\x94\x37\xbb\xfc\xe1\x61\xe0\xf2\x37\xb5\xcb\xff\xaf\xcb\xe6\xd7\xdc\x78\x7d\x71\x72\xf4\x82\xe1\xdb\xa6\x87\x8b\x22\x17\x3e\x73\xe9\xb1\x26\x94\x29\xd8\x6f\x90\x03\x17\x4d\x3c\x01\x1e\xa8\xd2\xea\xe5\x9b\xfd\xf4\xb9\xe6\xf9\xf4\xe2\x71\xfd\x72\x81\xf8\x05\xf1\x43\xcc\xbe\xed\x97\x8a\xb0\xd0\x00\xe5\x6e\x9f\x62\x78\x7b\xff\xe6\xeb\x97\xe1\xe9\x68\xb9\x75\xb7\x6a\xce\x07\x94\x83\xdb\x68\x32\x51\x80\x90\x70\x6e\xef\x6a\x02\xcb\x25\xa4\x02\x87\xd8\xd9\x50\xba\xb0\x89\xe5\xa2\xc4\x60\x2e\xa7\xad\xf8\xbe\x3f\x0c\x3e\x95\xd2\xb0\xc2\xfa\x50\x63\x6c\x6f\x6f\x81\x84\x34\x2b\x88\x61\x55\x69\xef\x18\x0a\x94\x3f\x82\x55\x34\x0d\xc8\xd9\xeb\x0e\xca\xa9\x4e\xf7\x42\x6e\x51\xde\x72\xeb\x51\xaf\x5e\xd3\x9d\x77\x4d\x6e\x35\x3e\xa1\x3c\xfa\x58\x50\xae\x51\x3e\x11\xe6\x24\x77\xc5\xae\xe2\x59\x18\x79\xc8\xf4\xae\x0f\xec\xc5\x51\x92\x63\x26\xf2\x1e\xb0\x87\x96\xff\x70\xeb\x4d\xc6\xaf\xbc\x96\x50\x47\x9e\xb5\x54\x93\x48\xb9\xd0\xb1\xcd\x19\xf3\xae\x2c\xd9\xb7\x03\xaa\x9a\xfb\xbb\x99\x53\xaa\x77\xed\x67\x43\xaa\xd1\x94\xe6\x44\x93\xc9\xd0\x1a\x3d\x04\x9d\x69\xb1\xea\x52\x29\x52\xb6\x14\x5d\x59\x37\xbc\x90\x39\x5b\x14\x94\x5f\x14\xe6\xd2\xf6\xc2\x61\xae\x2a\x73\xa2\x51\xb5\xc5\xdd\xa2\xfa\x5a\x90\x3e\x8f\x40\x4d\x86\xef\x6a\xfd\xcd\xeb\xad\x2d\xe1\x4a\x3f\xf4\x99\x6d\x53\x76\x0f\xb2\x3d\xde\x3a\x05\xdd\xa3\x49\xd2\x7b\x00\x89\x21\x68\x5f\x70\xa7\xe5\x31\x7d\xab\xcc\xe1\xa3\xca\x40\xc7\x57\x3e\x33\x4e\x69\x91\x68\x22\xf3\xdc\x3b\xdf\x6b\x44\x77\x4b\x03\x70\x45\xf7\xbb\x14\x60\x89\x7b\xd4\x1e\x32\xce\xdf\xe9\xb4\x4e\x9c\x4d\xb3\x31\x4f\xcf\xf9\xb7\xa6\xa7\x8b\xaf\x5f\x91\x97\x5f\x74\x30\x79\xf9\xa4\xee\x3d\x68\x7f\xab\xb4\xb6\x5d\x65\xf6\x32\xd1\xcc\x7e\x83\x73\xc5\xb7\xc8\x00\xdf\x1b\x37\xe7\x40\x83\xe2\xfc\xd5\x32\x0c\xf6\x42\xf6\x7f\xff\x0d\x00\x00\xff\xff\x40\xeb\x60\xaf\x1e\x25\x00\x00") func etcNginxLuaTestBalancer_testLuaBytes() ([]byte, error) { return bindataRead( @@ -240,7 +219,7 @@ func etcNginxLuaTestUpSh() (*asset, error) { return a, nil } -var _etcNginxLuaUtilLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x56\x4d\x6f\xe3\x36\x13\xbe\xeb\x57\x0c\x92\xf7\xc5\x3a\x58\x59\x5f\x76\x36\x8d\x00\x1f\x82\x6d\x81\x1e\x9a\x5e\xba\xd8\x8b\xe1\x12\xb4\x34\x92\x59\x4b\xa4\x96\xa4\x94\x04\xfd\xf8\xed\xc5\x50\x1f\x96\x36\xd9\xa2\x40\x73\xb0\xa4\xe1\xc3\x99\xe1\xcc\xc3\x67\x52\xa9\x8c\x57\xc0\x1e\x61\x07\xbf\xff\xe9\xf5\x5f\xc6\x6a\x21\x4b\x56\xa1\x84\xdd\xf0\x11\x54\x28\x97\xab\xa6\x3d\x5e\x56\x4d\x7b\xf4\xbc\xf5\x1a\x4a\xd1\xa1\x04\x2e\xe1\xe7\x52\xc8\x67\xe8\xb8\x16\xfc\x58\x21\x88\x00\xe1\x7f\x1a\xbf\xb4\x68\x2c\x6b\xb5\x20\xac\xb0\xa0\xd1\xb6\x5a\x1a\xe8\x78\xd5\x22\xa8\x02\x64\xf9\x1c\x74\x5c\xef\x67\xd0\x83\x57\xb4\x32\xb3\x42\x49\x60\x8f\x41\xd5\x72\x26\xcb\x67\xd6\x71\xbd\x1a\x9e\x37\x1e\x40\x9f\x59\xc7\x35\x93\xbc\xc6\x29\x2f\x4a\x72\x84\xf9\x90\x10\xb2\x0f\x39\x05\x1a\xb7\x1c\x3c\x94\xb9\xb7\x08\x65\x9a\x4a\x58\xd6\x70\xa1\x57\xf4\xe3\x83\xc1\x06\x35\xb7\x6a\x16\x51\xc0\x0e\x68\x31\x2d\x84\xcc\x57\x0b\x80\x28\x68\x75\x07\x52\x54\x60\x4f\x28\x3d\x80\x29\x7a\xef\x4f\x8a\xca\x03\xc0\xca\xa0\x5b\xeb\x3d\x0e\xf9\x3b\xa7\x94\x7d\xec\x83\x80\x35\xc4\x37\x33\x4c\x5f\xae\x19\x48\xc0\x7b\x88\x7d\x58\x0f\xa8\xf1\x8c\xbc\x46\xbf\x07\x53\x1c\x99\xf7\x67\x5c\xaf\xc1\x9e\x84\x01\x51\x37\x15\xd6\x28\x2d\x77\x27\x16\x06\x2c\x3f\xa3\x84\x42\xab\x9a\x40\x27\x6b\x1b\x93\x86\xe1\x13\x1e\x03\xae\xb3\x93\xe8\x30\x50\xba\xa4\xef\x30\x89\xe2\x4d\x9c\x24\xb7\xd1\x5d\xb4\xdd\x6c\x43\x82\xa6\x61\x68\xa4\x68\x1a\xb4\x86\xba\x94\xa9\xbc\x87\x8f\xc6\xf0\x7b\xc4\x86\x7d\x54\x75\xc3\xb5\x30\x4a\x32\x55\xb0\x4f\x4f\x8a\x7d\xa6\xfc\x0c\xdb\x50\x48\x2e\x73\xa8\x55\x2e\x0a\x81\x39\x14\x4a\x43\x6b\x10\x84\xec\xf3\x6d\xb4\xfa\x0d\x33\x3b\xb0\x70\xea\x54\x4e\x6e\x33\xe7\x16\x57\x36\xf6\xc1\x26\x3e\x88\x52\x2a\x8d\xac\xb6\x97\x56\xd9\x97\x18\x76\x60\x5f\x1a\x42\xcd\xcd\xc9\x64\x4e\x86\xbe\x11\xf4\xaf\x9d\x5b\xa2\xce\x8d\xf5\x2c\x78\x65\xd0\xd5\x11\x60\xbd\x06\xa9\xe4\xda\x3a\x76\xd3\x6e\x03\x19\x97\x70\x44\xc8\x85\xc6\xcc\x56\x2f\x30\xe4\x94\x2f\x7c\xbe\x73\x3b\xde\xb9\x93\x92\xff\x99\x69\x1e\xca\xc6\x44\x1d\x9b\x5c\xa2\x71\x03\x4f\x58\x55\xf4\x74\x78\x03\x4f\x27\x91\x9d\xe0\xc4\x3b\xa4\xad\x50\xa3\xe5\x35\xda\x93\xca\x81\x31\xfc\x32\x1d\xb0\xb6\xb0\x83\x12\x2d\xad\xbb\x9d\xc3\xf1\x45\x01\x52\xd9\x4b\xa5\xfa\xe2\x8f\x8f\x80\x7c\xfc\x53\x4a\xd4\x9d\x73\xec\x77\x31\xf5\x87\x88\x68\xc8\x2f\xe4\x6a\xce\x53\x57\xda\x64\x7f\x8e\x0f\xce\x2a\x0a\x67\xea\xef\x84\xd2\x2e\xfe\xa2\x7d\x5d\xec\x77\xc9\xcd\x37\x8b\x3e\x8b\x9c\xf8\x5d\x32\x8b\x9c\x7c\x1d\xd9\xf5\x3a\xde\x9f\x93\x4b\xe4\xf8\x3f\x47\x1e\x2b\xa1\x5b\x74\x57\x89\x3d\x06\x73\x27\xb0\x5b\xf8\x5c\xaa\x89\x30\xec\x58\x71\x79\x5e\x19\xab\x67\x3a\x64\xac\x9e\xa5\x75\x11\x5e\x07\xa3\x95\x68\xba\xb4\xc3\x25\x93\xa4\xac\xee\x66\xa1\x0c\x73\x95\x19\x77\xfb\x42\x52\x39\x7a\x61\x6d\x63\xac\x46\x5e\xb3\x5a\xe5\x6d\x85\xc1\xc9\xd6\xd5\x35\x3e\x73\xba\xed\xe4\xe6\xe3\xc3\xe7\x1f\x1e\x3e\xa5\xe0\xfc\xd0\xad\x2f\x45\x27\x64\x09\xaa\xb5\x90\x82\x90\xc6\x22\xcf\x49\x8b\x7d\x30\xca\x31\x8b\x82\x00\x9d\xef\x49\x2b\x59\x92\x8f\x38\xb9\x0b\xa2\x20\x0a\xe2\x34\xf9\x10\xdf\xde\x41\xfa\xca\xe2\x8f\x0a\x1b\x4c\xf9\xf0\x3c\xd7\xb4\x39\x89\x22\x48\xdd\xef\x1b\x20\x63\xb9\x6d\x0d\xc1\xa2\xc0\xe1\xe8\xf1\x06\x4e\xa3\x69\x94\x34\xc8\xac\xa8\xf1\x0d\xd9\x9e\x80\x34\x28\x86\x21\x31\x30\xbe\xe3\xfa\x95\x20\x4b\x51\x4d\x7a\xec\x5a\x3d\x88\x43\x3f\x15\x7b\xce\x75\xc4\xb7\x8e\xeb\xb4\xac\xb9\xcd\x4e\xab\xab\xfd\xaf\xff\x37\x7f\xf8\x87\xf7\x57\x13\xf9\x88\x66\x74\xa5\xaf\xd2\xab\x4b\x08\x00\xbb\xbf\xb6\xef\xe3\x03\xec\xa0\x73\x96\xb7\x38\xf5\x7a\xfe\x94\x68\x59\x21\xb4\xb1\xcc\x49\xf8\x6a\x31\xea\x28\xb3\x6f\x1f\x96\xb8\xe4\xf2\x16\x05\x5c\x5b\x47\xa3\x05\xb5\x89\x6e\xcb\xf0\xfb\xf8\xf0\xef\xa7\x43\x3a\x1f\x0f\xa5\xb0\xa7\xf6\x18\x64\xaa\x0e\xab\x96\x17\xad\x1c\x1f\xc7\x4a\x1d\xc3\x9a\x1b\x8b\x3a\x2c\x5a\x49\x43\xe1\xfa\xa7\x8d\xd3\xf9\x5f\x7e\x7c\x48\x21\xda\x66\xf7\xf7\xc5\x7d\xb6\xb9\xdf\xe0\xed\x96\x7f\x88\xb6\x3c\xcf\x71\x7b\x4c\x6e\x8f\x77\xf7\xdb\x62\xfb\x5d\x1c\x6d\x31\xca\xa3\xb7\x04\x3f\x53\xcd\xcb\x4a\x69\x51\x5e\x2a\x42\x5f\x8c\x94\x78\x94\xf3\xe5\x32\xed\xe8\x0b\x32\x03\x2e\xc5\x77\xe8\x16\x21\xc7\xbe\xd3\x1f\xf5\xde\xed\x39\xe3\x8b\xdf\xbf\xf5\x03\x58\x48\x90\xf8\x6c\x7b\x9b\xa3\xcf\xc8\x83\x8b\xa3\xfd\x22\x5b\x72\x71\x73\x18\x74\xe2\x62\x75\xee\x6e\x86\x9d\x03\x39\xc6\xff\x0a\xa6\x7c\x08\xf9\x35\x6b\xdc\xa1\x66\x4a\x34\x40\xc7\x57\xcf\x1b\x70\xec\xd1\xfb\x3b\x00\x00\xff\xff\x49\x67\x72\xb9\xe8\x09\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\x9c\x16\x6b\x63\x15\x59\x52\xec\x4d\x63\xc0\x87\xc5\xb6\x40\x0f\x4d\x2f\x5d\xec\x25\x48\x05\x5a\x1c\x49\xac\x25\x52\x4b\x52\x4a\x8c\x7e\xfc\xf6\x62\x28\xca\x96\x12\x6f\xbb\x45\x73\x88\x2c\xf2\xcd\x9b\x19\xce\x9b\xa1\x2a\x95\xb1\x0a\x8c\xd5\x42\x16\x69\x85\x12\x76\xfe\x25\xac\x50\xce\x26\xbb\xa6\xdd\x9f\x77\x4d\xbb\xf7\xbb\x1a\x8d\x3d\xa6\xc6\x6a\xd8\x81\xc6\xcf\xad\xd0\xb8\x98\xbb\xc5\xb0\xc7\xce\x97\x53\x64\xc9\xe2\x0b\xd0\x92\xc5\x2f\x80\x35\xdf\xbc\xc6\xd5\x7c\x33\x5f\xce\x3c\x2e\xbd\x87\x1d\xfc\xfe\xe7\xf0\x9a\xb7\x32\xb3\x42\x49\x28\x99\x29\x53\x2e\x0a\x34\x76\xe1\x7e\xe7\x2c\xb3\x4a\x1f\x03\xa8\xd1\x18\x56\xe0\x72\x06\xd0\xdb\xd0\x36\xec\x60\x8c\xda\x4a\x7c\x5a\x10\x42\xe4\x20\x95\xed\x21\xb6\x44\x39\x03\x00\xd0\x68\x5b\x2d\x41\x8a\x2a\x80\x79\xce\x44\x85\x1c\xac\x82\x4c\x23\xb3\x08\x6a\xff\x1b\x66\x76\x3e\x03\x40\xc9\x4f\x4e\xd4\xc1\xbb\xd8\xb6\x0d\x67\x16\x17\xa3\x30\xbc\x13\x75\xf8\x57\x17\x8c\x73\xe0\xcc\xb2\x97\xec\x7b\x21\x99\x3e\xfa\x7c\x07\x47\xb9\x90\xac\x1a\xb2\x78\x81\xd8\x11\xf5\xd7\x66\xd4\x1b\x9d\x7d\x7a\xf4\xa9\xea\xa1\x55\x69\x89\xcf\x8b\x89\x8f\x65\x40\x74\x33\xb2\x98\x9d\xaa\x92\xde\xbb\x2a\x0f\x85\x19\x9d\x81\xe7\x1c\x97\xed\xac\x95\x51\xd1\x5e\xf1\xd5\x7c\xf3\x5f\xe8\x6a\xbe\x79\xc9\x76\x7d\x0d\x85\xe8\x50\x02\x93\xf0\x73\x21\xe4\x33\x74\x4c\x0b\xb6\xaf\x10\x44\x88\xf0\x0d\xc9\x0f\x8d\x4d\x5b\x2d\x08\x2b\xac\x67\x37\xd0\xb1\xaa\x45\x50\x39\xc8\xe2\x39\xec\x98\x7e\x18\x41\x1f\x27\x51\x56\x2d\x4b\x65\xf1\x9c\x76\x4c\x2f\xfc\xf3\x2c\xc0\x8e\xe9\x54\xb2\x1a\x4f\xad\x45\x7d\x36\xc0\x02\x48\x46\x09\x0d\x8e\x06\x93\xc7\x0b\x07\xdc\x54\xc2\xa6\x0d\x13\x7a\x41\xff\x02\x30\xd8\xa0\x66\x56\x8d\x3c\x0a\xd8\x01\x6d\x92\x46\xf8\x62\x02\x10\x39\xed\x5e\xd6\x47\xcf\x47\x65\x05\xc0\xca\xa0\xdb\xeb\x19\x7d\xfc\x8e\x94\xa2\x8f\x03\x10\x70\x0d\xf1\x72\x84\xe9\x8f\x6b\x04\x12\xf0\x16\xe2\x00\xae\x3d\x6a\xc8\x91\xd5\x18\xf4\x60\x2f\xb9\xa1\x4c\xb6\x14\x06\x44\xdd\x54\x58\xa3\xb4\xcc\x65\x2c\x0c\x58\x76\x40\x09\xb9\x56\x35\x81\x4a\x6b\x1b\xb3\x5d\xad\x9e\x70\x1f\x32\x9d\x95\xa2\xc3\x50\xe9\x82\xde\x57\x49\x14\xdf\xc4\x49\xb2\x89\x6e\xa3\xf5\xcd\x7a\x45\xd0\xed\x6a\x65\xa4\x68\x1a\xb4\x86\xaa\x94\x29\xde\xc3\x87\xc5\xd5\xf7\x88\x4d\xfa\x41\xd5\x0d\xd3\xc2\x28\x99\xaa\x3c\xfd\xf8\xa4\xd2\x4f\x14\x9f\x49\x6f\xc8\x25\x93\x1c\x6a\xc5\x45\x2e\x90\x43\xae\x34\xb4\x06\x41\xc8\x3e\xde\x46\x2b\x1a\x08\x2f\x07\x14\x27\xda\xcc\xd1\xe2\xc2\xc6\x01\xd8\x24\x00\x51\x48\xa5\x31\xad\xed\xb9\x54\xf6\x48\xa3\xd2\x1e\x1b\x42\x8d\x97\x93\xd3\x72\xe2\xeb\x46\xd0\xbf\x76\x6e\x8b\x2a\x37\x9c\x67\xce\x2a\x83\xbe\x75\xaf\xaf\x41\x2a\x79\x6d\x9d\xba\xc9\xda\x40\xc6\x24\xec\xa9\xc9\x35\x66\xb6\x3a\x82\x8f\x89\x4f\x38\xdf\x38\x8b\x37\x2e\x53\xe2\x1f\x2d\x8d\x5d\xd9\x98\xa4\x63\x93\xb3\x37\x66\xe0\x09\xab\x8a\x9e\x0e\x6f\xe0\xa9\x14\x59\x09\x25\xeb\x90\x4c\xa1\x46\xcb\x6a\xb4\xa5\xe2\x90\xa6\xf8\xf9\x94\x60\x4d\x73\xac\x40\x4b\xfb\xce\xd2\xa7\xef\x87\xe5\xe9\xa4\xfa\xc3\x1f\x1e\x21\x71\xfc\x53\x48\x54\x9d\x43\x1c\x74\x31\xd5\x87\x84\x68\x88\x17\xb8\x1a\xeb\xd4\x1d\x6d\xf2\x70\x88\x1f\xdd\xaa\xc8\xdd\x52\xdf\x13\x4a\x3b\xff\x93\xf2\x75\x71\xd0\x25\xcb\x2f\x1e\xfa\xc8\x73\x12\x74\xc9\xc8\x73\xf2\xd2\xb3\xab\x75\xfc\x70\x48\xce\x9e\xe3\xff\xed\x79\x38\x09\xdd\xa2\x6b\xa5\xf4\x3e\x1c\x93\xc0\x6e\xc2\x39\x9d\x26\xc2\xa4\xfb\x8a\xc9\xc3\xc2\x58\x3d\x9a\x43\xee\xae\x3f\x85\x75\xfe\x76\x70\x30\xda\x89\x4e\x4d\xeb\x9b\x4c\xd2\x64\x75\x9d\x85\x72\xc5\x55\x66\x5c\xf7\xad\x68\xca\xd1\x8f\xb4\x6d\x8c\xd5\xc8\xea\xb4\x56\xbc\xad\x30\x2c\x6d\x5d\x5d\xe1\x33\xa3\x6e\x27\x9a\x0f\xef\x3f\xfd\xf0\xfe\xe3\x16\x1c\x0f\x75\x7d\x21\x3a\x21\x0b\x50\xad\x85\x2d\x08\x69\x2c\x32\x4e\xb3\x38\x00\xa3\x9c\xb2\xc8\x09\x50\x7e\x4f\x5a\xc9\x82\x38\xe2\xe4\x36\x8c\xc2\x28\x8c\xb7\xc9\xbb\x78\x73\x0b\xdb\x57\x2b\xc1\x30\x61\xc3\x53\x3c\x8c\x73\x4d\xc6\x49\x14\xc1\xd6\xfd\xbf\x00\x32\x96\xd9\xd6\x10\x2c\x0a\x1d\x8e\x1e\x17\x70\x1a\x4d\xa3\xa4\xc1\xd4\x8a\x1a\x2f\x8c\xed\x13\x90\x2e\x0a\x7f\x49\x78\xc5\x77\x4c\x5f\xbe\xb0\xfd\x3c\x1e\x7d\x0e\xd8\xfe\x9b\xa8\xd7\x5c\x47\x7a\xeb\x98\xde\x16\x35\xb3\x59\xb9\x98\x3f\xfc\xfa\xad\xf9\x23\x78\x7c\x3b\x3f\x89\x8f\x64\x46\x2d\x3d\xdf\xce\xcf\x2e\x00\xec\xc3\x95\x7d\x1b\x3f\xc2\x0e\x3a\xb7\x72\x49\x53\xaf\xef\x9f\x02\x6d\x9a\x0b\x6d\x6c\xea\x46\xf8\x62\x72\xd5\x51\x64\x5f\x4e\x96\xb4\xe4\xe2\x16\x39\x5c\xb9\xaf\x94\x68\x22\x6d\x92\xdb\xd4\xfd\x43\xfc\xf8\xf5\xb7\xc3\x76\x7c\x3d\x14\xc2\x96\xed\x3e\xcc\x54\xbd\xaa\x5a\x96\xb7\x72\x78\xec\x2b\xb5\x5f\xd5\xcc\x58\xd4\xab\xbc\x95\x74\x29\x5c\xfd\x74\xe3\xe6\xfc\x2f\x3f\xbe\xdf\x42\xb4\xce\xee\xee\xf2\xbb\xec\xe6\xee\x06\x37\x6b\xf6\x2e\x5a\x33\xce\x71\xbd\x4f\x36\xfb\xdb\xbb\x75\xbe\xfe\x2e\x8e\xd6\x18\xf1\xe8\xd2\xc0\xcf\x54\x73\x5c\x28\x2d\x8a\xf3\x89\xd0\x5b\x4a\x93\x78\x18\xe7\xd3\x6d\xb2\xe8\x0f\x64\x04\x9c\x0e\x5f\x5f\x2d\x42\x0e\x75\xa7\x3f\xaa\xbd\xb3\x39\xe0\x31\xe8\x7f\xf5\x17\xb0\x90\x20\xf1\xd9\xf6\x6b\x4e\x3e\x83\x0e\xce\x44\x0f\x93\x68\x89\x62\xf9\xe8\xe7\xc4\x79\xd5\xd1\x2d\xbd\xa5\x17\xc7\xf0\x55\x70\x8a\x87\x90\x2f\x55\xe3\x92\x1a\x4d\x22\x0f\x1d\x7e\xce\x66\x1e\x97\xde\xcf\xfe\x0e\x00\x00\xff\xff\x2e\x8e\xf4\x70\x9d\x0c\x00\x00") func etcNginxLuaUtilLuaBytes() ([]byte, error) { return bindataRead( @@ -396,7 +375,6 @@ var _bindata = map[string]func() (*asset, error){ "etc/nginx/lua/balancer/resty.lua": etcNginxLuaBalancerRestyLua, "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, @@ -456,7 +434,6 @@ var _bintree = &bintree{nil, 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{}}, diff --git a/rootfs/etc/nginx/lua/balancer.lua b/rootfs/etc/nginx/lua/balancer.lua index 520e24f4a..b6a6937d6 100644 --- a/rootfs/etc/nginx/lua/balancer.lua +++ b/rootfs/etc/nginx/lua/balancer.lua @@ -4,7 +4,6 @@ local configuration = require("configuration") local util = require("util") local lrucache = require("resty.lrucache") local ewma = require("balancer.ewma") -local sticky = require("sticky") local resty_balancer = require("balancer.resty") -- measured in seconds @@ -18,9 +17,9 @@ local _M = {} -- TODO(elvinefendi) we can probably avoid storing all backends here. We already store them in their respective -- load balancer implementations -local backends, err = lrucache.new(1024) +local backends, backends_err = lrucache.new(1024) if not backends then - return error("failed to create the cache for backends: " .. (err or "unknown")) + return error("failed to create the cache for backends: " .. (backends_err or "unknown")) end local function get_current_backend() @@ -35,75 +34,48 @@ local function get_current_backend() return backend end -local function get_current_lb_alg() - local backend = get_current_backend() +local function get_balancer(backend) if not backend then return nil end - return backend["load-balance"] or DEFAULT_LB_ALG + local lb_alg = backend["load-balance"] or DEFAULT_LB_ALG + if resty_balancer.is_applicable(backend) then + return resty_balancer + elseif lb_alg ~= "ewma" then + if lb_alg ~= DEFAULT_LB_ALG then + ngx.log(ngx.WARN, + string.format("%s is not supported, falling back to %s", backend["load-balance"], DEFAULT_LB_ALG)) + end + return resty_balancer + end + + return ewma end local function balance() local backend = get_current_backend() - if not backend then + local balancer = get_balancer(backend) + if not balancer then return nil, nil end - local lb_alg = get_current_lb_alg() - local is_sticky = sticky.is_sticky(backend) - if is_sticky then - local endpoint = sticky.get_endpoint(backend) - if endpoint ~= nil then - return endpoint.address, endpoint.port - end - lb_alg = "round_robin" - end - - if backend["upstream-hash-by"] then - local endpoint = resty_balancer.balance(backend) - if not endpoint then - return nil, nil - end - - return endpoint.address, endpoint.port - end - - if lb_alg == "ewma" then - local endpoint = ewma.balance(backend.endpoints) - return endpoint.address, endpoint.port - end - - if lb_alg ~= DEFAULT_LB_ALG then - ngx.log(ngx.WARN, string.format("%s is not supported, falling back to %s", tostring(lb_alg), DEFAULT_LB_ALG)) - end - - local endpoint = resty_balancer.balance(backend) + local endpoint = balancer.balance(backend) if not endpoint then return nil, nil end - if is_sticky then - sticky.set_endpoint(endpoint, backend) - end - return endpoint.address, endpoint.port end local function sync_backend(backend) backends:set(backend.name, backend) - local lb_alg = backend["load-balance"] or DEFAULT_LB_ALG - - if backend["upstream-hash-by"] or lb_alg == "round_robin" then - resty_balancer.reinit(backend) - end - - -- TODO: Reset state of EWMA per backend - if lb_alg == "ewma" then - ngx.shared.balancer_ewma:flush_all() - ngx.shared.balancer_ewma_last_touched_at:flush_all() + local balancer = get_balancer(backend) + if not balancer then + return end + balancer.sync(backend) end local function sync_backends() @@ -133,15 +105,18 @@ local function sync_backends() end local function after_balance() - local lb_alg = get_current_lb_alg() - if lb_alg == "ewma" then - ewma.after_balance() + local backend = get_current_backend() + local balancer = get_balancer(backend) + if not balancer then + return end + + balancer.after_balance() end function _M.init_worker() sync_backends() -- when worker starts, sync backends without delay - _, err = ngx.timer.every(BACKENDS_SYNC_INTERVAL, sync_backends) + local _, err = ngx.timer.every(BACKENDS_SYNC_INTERVAL, sync_backends) if err then ngx.log(ngx.ERR, string.format("error when setting up timer.every for sync_backends: %s", tostring(err))) end @@ -165,12 +140,8 @@ function _M.call() ngx_balancer.set_more_tries(1) - local ok - ok, err = ngx_balancer.set_current_peer(host, port) - if ok then - ngx.log(ngx.INFO, - string.format("current peer is set to %s:%s using lb_alg %s", host, port, tostring(get_current_lb_alg()))) - else + local ok, err = ngx_balancer.set_current_peer(host, port) + if not ok then ngx.log(ngx.ERR, string.format("error while setting current upstream peer to %s", tostring(err))) end end diff --git a/rootfs/etc/nginx/lua/balancer/ewma.lua b/rootfs/etc/nginx/lua/balancer/ewma.lua index 162f5cb6b..774b67ce3 100644 --- a/rootfs/etc/nginx/lua/balancer/ewma.lua +++ b/rootfs/etc/nginx/lua/balancer/ewma.lua @@ -117,7 +117,8 @@ local function pick_and_score(peers, k) return peers[lowest_score_index] end -function _M.balance(peers) +function _M.balance(backend) + local peers = backend.endpoints if #peers == 1 then return peers[1] end @@ -138,4 +139,10 @@ function _M.after_balance() get_or_update_ewma(upstream, rtt, true) end +function _M.sync(_) + -- TODO: Reset state of EWMA per backend + ngx.shared.balancer_ewma:flush_all() + ngx.shared.balancer_ewma_last_touched_at:flush_all() +end + return _M diff --git a/rootfs/etc/nginx/lua/balancer/resty.lua b/rootfs/etc/nginx/lua/balancer/resty.lua index 4ecef9a76..9813763f8 100644 --- a/rootfs/etc/nginx/lua/balancer/resty.lua +++ b/rootfs/etc/nginx/lua/balancer/resty.lua @@ -1,6 +1,7 @@ local resty_roundrobin = require("resty.roundrobin") local resty_chash = require("resty.chash") local util = require("util") +local ck = require("resty.cookie") local _M = {} local instances = {} @@ -29,6 +30,73 @@ local function init_resty_balancer(factory, instance, endpoints) return instance end +local function is_sticky(backend) + return backend["sessionAffinityConfig"] and backend["sessionAffinityConfig"]["name"] == "cookie" +end + +local function cookie_name(backend) + return backend["sessionAffinityConfig"]["cookieSessionAffinity"]["name"] or "route" +end + +local function encrypted_endpoint_string(backend, endpoint_string) + local encrypted, err + if backend["sessionAffinityConfig"]["cookieSessionAffinity"]["hash"] == "sha1" then + encrypted, err = util.sha1_digest(endpoint_string) + else + encrypted, err = util.md5_digest(endpoint_string) + end + if err ~= nil then + ngx.log(ngx.ERR, err) + end + + return encrypted +end + +local function set_cookie(backend, value) + local cookie, err = ck:new() + if not cookie then + ngx.log(ngx.ERR, err) + end + + local ok + ok, err = cookie:set({ + key = cookie_name(backend), + value = value, + path = "/", + domain = ngx.var.host, + httponly = true, + }) + if not ok then + ngx.log(ngx.ERR, err) + end +end + +local function pick_random(instance) + local index = math.random(instance.npoints) + return instance:next(index) +end + +local function sticky_endpoint_string(instance, backend) + local cookie, err = ck:new() + if not cookie then + ngx.log(ngx.ERR, err) + return pick_random(instance) + end + + local key = cookie:get(cookie_name(backend)) + if not key then + local tmp_endpoint_string = pick_random(instance) + key = encrypted_endpoint_string(backend, tmp_endpoint_string) + set_cookie(backend, key) + end + + return instance:find(key) +end + +function _M.is_applicable(backend) + return is_sticky(backend) or backend["upstream-hash-by"] or backend["load-balance"] == "round_robin" +end + function _M.balance(backend) local instance = instances[backend.name] if not instance then @@ -37,7 +105,9 @@ function _M.balance(backend) end local endpoint_string - if backend["upstream-hash-by"] then + if is_sticky(backend) then + endpoint_string = sticky_endpoint_string(instance, backend) + elseif backend["upstream-hash-by"] then local key = util.lua_ngx_var(backend["upstream-hash-by"]) endpoint_string = instance:find(key) else @@ -48,10 +118,10 @@ function _M.balance(backend) return { address = address, port = port } end -function _M.reinit(backend) +function _M.sync(backend) local instance = instances[backend.name] local factory = resty_roundrobin - if backend["upstream-hash-by"] then + if is_sticky(backend) or backend["upstream-hash-by"] then factory = resty_chash end @@ -66,4 +136,7 @@ function _M.reinit(backend) instances[backend.name] = init_resty_balancer(factory, instance, backend.endpoints) end +function _M.after_balance() +end + return _M diff --git a/rootfs/etc/nginx/lua/sticky.lua b/rootfs/etc/nginx/lua/sticky.lua deleted file mode 100644 index c16b1af86..000000000 --- a/rootfs/etc/nginx/lua/sticky.lua +++ /dev/null @@ -1,133 +0,0 @@ -local json = require('cjson') -local str = require("resty.string") -local sha1_crypto = require("resty.sha1") -local md5_crypto = require("resty.md5") - -local sticky_sessions = ngx.shared.sticky_sessions - -local DEFAULT_SESSION_COOKIE_NAME = "route" -local DEFAULT_SESSION_COOKIE_HASH = "md5" --- Currently STICKY_TIMEOUT never expires -local STICKY_TIMEOUT = 0 - -local _M = {} - -local function md5_digest(raw) - local md5 = md5_crypto:new() - if not md5 then - return nil, "md5: failed to create object" - end - local ok = md5:update(raw) - if not ok then - return nil, "md5: failed to add data" - end - local digest = md5:final() - if digest == nil then - return nil, "md5: failed to create digest" - end - return str.to_hex(digest), nil -end - -local function sha1_digest(raw) - local sha1 = sha1_crypto:new() - if not sha1 then - return nil, "sha1: failed to create object" - end - local ok = sha1:update(raw) - if not ok then - return nil, "sha1: failed to add data" - end - local digest = sha1:final() - if digest == nil then - return nil, "sha1: failed to create digest" - end - return str.to_hex(digest), nil -end - -local function get_cookie_name(backend) - local name = backend["sessionAffinityConfig"]["cookieSessionAffinity"]["name"] - return name or DEFAULT_SESSION_COOKIE_NAME -end - -local function is_valid_endpoint(backend, address, port) - for _, ep in ipairs(backend.endpoints) do - if ep.address == address and ep.port == port then - return true - end - end - return false -end - -function _M.is_sticky(backend) - return backend["sessionAffinityConfig"]["name"] == "cookie" -end - -function _M.get_endpoint(backend) - local cookie_name = get_cookie_name(backend) - local cookie_key = "cookie_" .. cookie_name - local endpoint_key = ngx.var[cookie_key] - if endpoint_key == nil then - ngx.log(ngx.INFO, string.format( - "[backend=%s, affinity=cookie] cookie \"%s\" is not set for this request", - backend.name, - cookie_name - )) - return nil - end - - local endpoint_string = sticky_sessions:get(endpoint_key) - if endpoint_string == nil then - ngx.log(ngx.INFO, string.format("[backend=%s, affinity=cookie] no endpoint assigned", backend.name)) - return nil - end - - local endpoint = json.decode(endpoint_string) - local valid = is_valid_endpoint(backend, endpoint.address, endpoint.port) - if not valid then - ngx.log(ngx.INFO, string.format("[backend=%s, affinity=cookie] assigned endpoint is no longer valid", backend.name)) - sticky_sessions:delete(endpoint_key) - return nil - end - return endpoint -end - -function _M.set_endpoint(endpoint, backend) - local cookie_name = get_cookie_name(backend) - local encrypted, err - local endpoint_string = json.encode(endpoint) - local hash = backend["sessionAffinityConfig"]["cookieSessionAffinity"]["hash"] - - if hash == "sha1" then - encrypted, err = sha1_digest(endpoint_string) - else - if hash ~= DEFAULT_SESSION_COOKIE_HASH then - ngx.log(ngx.WARN, string.format( - "[backend=%s, affinity=cookie] session-cookie-hash \"%s\" is not valid, defaulting to %s", - backend.name, - hash, - DEFAULT_SESSION_COOKIE_HASH - )) - end - encrypted, err = md5_digest(endpoint_string) - end - if err ~= nil then - ngx.log(ngx.WARN, string.format("[backend=%s, affinity=cookie] failed to assign endpoint: %s", backend.name, err)) - return - end - - ngx.log(ngx.INFO, string.format("[backend=%s, affinity=cookie] assigning a new endpoint", backend.name)) - ngx.header["Set-Cookie"] = cookie_name .. "=" .. encrypted .. ";" - local success, forcible - success, err, forcible = sticky_sessions:set(encrypted, endpoint_string, STICKY_TIMEOUT) - if not success then - ngx.log(ngx.WARN, string.format("[backend=%s, affinity=cookie] failed to assign endpoint: %s", backend.name, err)) - end - if forcible then - ngx.log(ngx.WARN, string.format( - "[backend=%s, affinity=cookie] sticky_sessions shared dict is full; endpoint forcibly overwritten", - backend.name - )) - end -end - -return _M diff --git a/rootfs/etc/nginx/lua/test/balancer_test.lua b/rootfs/etc/nginx/lua/test/balancer_test.lua index c48f6f257..29184b5bd 100644 --- a/rootfs/etc/nginx/lua/test/balancer_test.lua +++ b/rootfs/etc/nginx/lua/test/balancer_test.lua @@ -1,7 +1,7 @@ local cwd = io.popen("pwd"):read('*l') package.path = cwd .. "/rootfs/etc/nginx/lua/?.lua;" .. package.path -local balancer, mock_cjson, mock_config, mock_sticky, mock_backends, mock_lrucache, lock, mock_lock, +local balancer, mock_cjson, mock_config, mock_backends, mock_lrucache, lock, mock_lock, mock_ngx_balancer, mock_ewma local function dict_generator(vals) @@ -46,10 +46,14 @@ local default_backends = { local function init() mock_cjson = {} mock_config = {} - mock_sticky = {} mock_ngx_balancer = {} - mock_ewma = {} - mock_resty_balancer = {} + mock_ewma = { + sync = function(b) return end + } + mock_resty_balancer = { + sync = function(b) return end, + after_balance = function () return end + } mock_backends = dict_generator(default_backends) mock_lrucache = { new = function () return mock_backends end @@ -76,12 +80,15 @@ local function init() } package.loaded["ngx.balancer"] = mock_ngx_balancer package.loaded["resty.lrucache"] = mock_lrucache + package.loaded["resty.string"] = {} + package.loaded["resty.sha1"] = {} + package.loaded["resty.md5"] = {} + package.loaded["resty.cookie"] = {} package.loaded["cjson"] = mock_cjson package.loaded["resty.lock"] = mock_lock package.loaded["balancer.ewma"] = mock_ewma package.loaded["balancer.resty"] = mock_resty_balancer package.loaded["configuration"] = mock_config - package.loaded["sticky"] = mock_sticky balancer = require("balancer") end @@ -91,7 +98,7 @@ describe("[balancer_test]", function() end) teardown(function() - local packages = {"ngx.balancer", "resty.lrucache","cjson", "resty.lock", "balancer.ewma","configuration", "sticky"} + local packages = {"ngx.balancer", "resty.lrucache","cjson", "resty.lock", "balancer.ewma","configuration"} for i, package_name in ipairs(packages) do package.loaded[package_name] = nil end @@ -108,7 +115,6 @@ describe("[balancer_test]", function() _G.ngx.get_phase = nil _G.ngx.var = {} mock_backends._vals = default_backends - mock_sticky.is_sticky = function(b) return false end end) describe("phase=log", function() @@ -121,6 +127,7 @@ describe("[balancer_test]", function() local ewma_after_balance_spy = spy.on(mock_ewma, "after_balance") + mock_resty_balancer.is_applicable = function(b) return false end assert.has_no_errors(balancer.call) assert.spy(ewma_after_balance_spy).was_called() end) @@ -130,6 +137,7 @@ describe("[balancer_test]", function() local ewma_after_balance_spy = spy.on(mock_ewma, "after_balance") + mock_resty_balancer.is_applicable = function(b) return true end assert.has_no_errors(balancer.call) assert.spy(ewma_after_balance_spy).was_not_called() end) @@ -173,46 +181,13 @@ describe("[balancer_test]", function() local set_more_tries_spy = spy.on(mock_ngx_balancer, "set_more_tries") local set_current_peer_spy = spy.on(mock_ngx_balancer, "set_current_peer") + mock_resty_balancer.is_applicable = function(b) return false end assert.has_no_errors(balancer.call) assert.spy(backend_get_spy).was_called_with(match.is_table(), "mock_ewma_backend") assert.spy(set_more_tries_spy).was_called_with(1) assert.spy(set_current_peer_spy).was_called_with("000.000.111", "8083") end) - it("sticky=true, returns stored endpoints and peer was successfully set", function() - _G.ngx.var.proxy_upstream_name = "mock_rr_backend" - - mock_sticky.is_sticky = function(b) return true end - mock_sticky.get_endpoint = function() return {address = "000.000.011", port = "8082"} end - - local backend_get_spy = spy.on(mock_backends, "get") - local set_more_tries_spy = spy.on(mock_ngx_balancer, "set_more_tries") - local set_current_peer_spy = spy.on(mock_ngx_balancer, "set_current_peer") - - assert.has_no_errors(balancer.call) - assert.spy(backend_get_spy).was_called_with(match.is_table(), "mock_rr_backend") - assert.spy(set_more_tries_spy).was_called_with(1) - assert.spy(set_current_peer_spy).was_called_with("000.000.011", "8082") - end) - - it("sticky=true, does not return stored endpoints, defaults to round robin", function() - _G.ngx.var.proxy_upstream_name = "mock_rr_backend" - - mock_sticky.is_sticky = function(b) return true end - mock_sticky.get_endpoint = function() return nil end - mock_sticky.set_endpoint = function(b) return end - - local backend_get_spy = spy.on(mock_backends, "get") - local set_more_tries_spy = spy.on(mock_ngx_balancer, "set_more_tries") - local set_current_peer_spy = spy.on(mock_ngx_balancer, "set_current_peer") - - mock_resty_balancer.balance = function(b) return {address = "000.000.000", port = "8080"} end - assert.has_no_errors(balancer.call) - assert.spy(backend_get_spy).was_called_with(match.is_table(), "mock_rr_backend") - assert.spy(set_more_tries_spy).was_called_with(1) - assert.spy(set_current_peer_spy).was_called_with("000.000.000", "8080") - end) - it("fails when no backend exists", function() _G.ngx.var.proxy_upstream_name = "mock_rr_backend" @@ -276,18 +251,18 @@ describe("[balancer_test]", function() end) it("lb_alg=ewma, updates backend when sync is required", function() + _G.ngx.var.proxy_upstream_name = "mock_ewma_backend" mock_config.get_backends_data = function() return { default_backends.mock_ewma_backend } end mock_backends._vals = {} local backend_set_spy = spy.on(mock_backends, "set") - local ewma_flush_spy = spy.on(_G.ngx.shared.balancer_ewma, "flush_all") - local ewma_lta_flush_spy = spy.on(_G.ngx.shared.balancer_ewma_last_touched_at, "flush_all") + local ewma_sync_spy = spy.on(mock_ewma, "sync") + mock_resty_balancer.is_applicable = function(b) return false end assert.has_no_errors(balancer.init_worker) assert.spy(backend_set_spy) .was_called_with(match.is_table(), default_backends.mock_ewma_backend.name, match.is_table()) - assert.spy(ewma_flush_spy).was_called_with(match.is_table()) - assert.spy(ewma_lta_flush_spy).was_called_with(match.is_table()) + assert.spy(ewma_sync_spy).was_called() end) end) end) diff --git a/rootfs/etc/nginx/lua/util.lua b/rootfs/etc/nginx/lua/util.lua index 5edcef9a2..1eca671c8 100644 --- a/rootfs/etc/nginx/lua/util.lua +++ b/rootfs/etc/nginx/lua/util.lua @@ -1,6 +1,34 @@ -local _M = {} local string_len = string.len local string_sub = string.sub +local resty_str = require("resty.string") +local resty_sha1 = require("resty.sha1") +local resty_md5 = require("resty.md5") + +local _M = {} + +local function hash_digest(hash_factory, message) + local hash = hash_factory:new() + if not hash then + return nil, "failed to create object" + end + local ok = hash:update(message) + if not ok then + return nil, "failed to add data" + end + local binary_digest = hash:final() + if binary_digest == nil then + return nil, "failed to create digest" + end + return resty_str.to_hex(binary_digest), nil +end + +function _M.sha1_digest(message) + return hash_digest(resty_sha1, message) +end + +function _M.md5_digest(message) + return hash_digest(resty_md5, message) +end -- given an Nginx variable i.e $request_uri -- it returns value of ngx.var[request_uri] diff --git a/test/e2e/lua/dynamic_configuration.go b/test/e2e/lua/dynamic_configuration.go index e4cbda154..b4e17780f 100644 --- a/test/e2e/lua/dynamic_configuration.go +++ b/test/e2e/lua/dynamic_configuration.go @@ -256,6 +256,9 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() { Context("when session affinity annotation is present", func() { It("should use sticky sessions when ingress rules are configured", func() { + err := framework.UpdateDeployment(f.KubeClientSet, f.IngressController.Namespace, "nginx-ingress-controller", 2, nil) + Expect(err).NotTo(HaveOccurred()) + cookieName := "STICKYSESSION" By("Updating affinity annotation on ingress") @@ -275,47 +278,41 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() { By("Making a first request") host := "foo.com" - resp, _, errs := gorequest.New(). + resp, body, errs := gorequest.New(). Get(f.IngressController.HTTPURL). Set("Host", host). End() Expect(len(errs)).Should(BeNumerically("==", 0)) Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + hostnamePattern := regexp.MustCompile(`Hostname: ([a-zA-Z0-9\-]+)`) + upstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] + cookies := (*http.Response)(resp).Cookies() sessionCookie, err := getCookie(cookieName, cookies) Expect(err).ToNot(HaveOccurred()) - By("Making a second request with the previous session cookie") - resp, _, errs = gorequest.New(). - Get(f.IngressController.HTTPURL). - AddCookie(sessionCookie). - Set("Host", host). - End() - Expect(len(errs)).Should(BeNumerically("==", 0)) - Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + Expect(sessionCookie.Domain).Should(Equal(host)) - By("Making a third request with no cookie") - resp, _, errs = gorequest.New(). - Get(f.IngressController.HTTPURL). - Set("Host", host). - End() + By("Making many requests with the previous session cookie") + for i := 0; i < 5; i++ { + resp, _, errs = gorequest.New(). + Get(f.IngressController.HTTPURL). + AddCookie(sessionCookie). + Set("Host", host). + End() + Expect(len(errs)).Should(BeNumerically("==", 0)) + Expect(resp.StatusCode).Should(Equal(http.StatusOK)) - Expect(len(errs)).Should(BeNumerically("==", 0)) - Expect(resp.StatusCode).Should(Equal(http.StatusOK)) + newCookies := (*http.Response)(resp).Cookies() + _, err := getCookie(cookieName, newCookies) + By("Omitting cookie in all subsequent requests") + Expect(err).To(HaveOccurred()) - log, err := f.NginxLogs() - Expect(err).ToNot(HaveOccurred()) - Expect(log).ToNot(BeEmpty()) - - By("Checking that upstreams are sticky when session cookie is used") - index := strings.Index(log, fmt.Sprintf("reason: 'UPDATE' Ingress %s/foo.com", f.IngressController.Namespace)) - reqLogs := log[index:] - re := regexp.MustCompile(`\d{1,3}(?:\.\d{1,3}){3}(?::\d{1,5})`) - upstreams := re.FindAllString(reqLogs, -1) - Expect(len(upstreams)).Should(BeNumerically("==", 3)) - Expect(upstreams[0]).To(Equal(upstreams[1])) - Expect(upstreams[1]).ToNot(Equal(upstreams[2])) + By("By proxying to the same upstream") + newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] + Expect(newUpstreamName).Should(Equal(upstreamName)) + } }) It("should NOT use sticky sessions when a default backend and no ingress rules configured", func() {