From 44ddd8abba3e3fe0b6498e8c089413ccd5119a79 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Mon, 14 May 2018 17:02:09 -0400 Subject: [PATCH] force backend sync when worker starts --- internal/file/bindata.go | 4 ++-- rootfs/etc/nginx/lua/balancer.lua | 8 +++++--- rootfs/etc/nginx/lua/test/balancer_test.lua | 5 ++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/internal/file/bindata.go b/internal/file/bindata.go index 01d0b182a..c0139d69a 100644 --- a/internal/file/bindata.go +++ b/internal/file/bindata.go @@ -120,7 +120,7 @@ func etcNginxLuaBalancerRestyLua() (*asset, error) { return a, nil } -var _etcNginxLuaBalancerLua = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xac\x58\x5b\x6f\x1b\xbb\x11\x7e\xd7\xaf\x18\x2c\x10\x40\x8b\xca\x8b\xa6\xe8\x93\x51\x15\x50\x12\xa5\x35\xea\x4b\x60\x3b\x09\x8a\x22\x20\xa8\xdd\x59\x89\x11\x45\x6e\x49\xae\x65\xa1\x68\x7e\xfb\xc1\x50\x4b\x2e\x57\x17\xfb\xe4\x9c\xf3\x14\x6b\x39\x9c\xeb\x37\xdf\x0c\x23\x75\xc9\x25\xa8\xe5\x33\x5b\x70\xc9\x55\x89\x06\xa6\x60\xf0\xbf\xad\x30\x38\xce\xd4\xf2\xb9\x08\xdf\xb3\x7c\xb4\x17\xfe\x6e\xb5\x4a\x85\x4a\xfa\x10\x4f\x4b\xad\x6a\xb1\x6c\x0d\x77\xe2\x40\x2c\x3d\x88\xe2\xad\x13\x32\x95\xa2\xdf\xf1\x50\x9a\xb6\xe4\xe5\x0a\x53\x01\x83\xd6\xed\x8a\x70\x12\x45\x71\xbb\xe1\xa9\x58\xf0\xba\xa0\x83\x28\x65\x9d\x28\xd7\xbb\x54\x6e\xff\x25\x0a\x78\xed\x27\x53\x11\x15\x7a\x91\x2c\x1f\x8d\x2e\x2e\x60\x83\xdc\xb6\x06\x2b\x10\x0a\x2c\x96\x5a\x55\x96\x3e\xd7\xda\x00\x57\x70\xbb\x14\xea\x19\xb6\xda\xac\xd1\x80\xd3\xd0\x88\x72\x0d\x6d\x03\x6e\x85\xa0\x70\x0b\x52\x58\x07\xba\x86\xb6\xb1\xce\x20\xdf\x40\x83\x68\xbc\x02\xe1\x60\x2b\xa4\x04\xc7\xd7\x08\x7f\x23\xf9\x0a\x25\xdf\x41\xab\x28\x5d\xa5\x56\xce\x68\x29\xd1\xc0\xa7\xbb\x87\x47\xac\xbc\xc6\x05\x2f\xd7\xa8\x2a\xd0\x8b\xef\x58\x3a\xb2\x47\x5f\xf7\x3e\xa0\xaa\x1a\x2d\x94\xfb\x3b\xfc\x09\xde\xcd\xde\xff\x6b\x7e\xfb\xe1\x81\x3d\xfc\xfb\xf6\x3d\xbb\xba\x7d\x9c\xdf\x7f\x99\x5d\x77\xf1\x9f\x3e\x84\x29\xbc\x1d\x75\x12\x1f\xe6\x1f\x67\x9f\xaf\x1f\xd9\xf5\x3b\x36\xbb\xfe\x07\x4c\x21\x33\xba\x55\x15\x33\x7a\x21\x54\x16\xa4\xd8\x0d\x4c\xe1\x7f\xff\xf7\x49\x7a\xbc\xfb\x70\x37\x46\xf9\x24\x14\xd6\xa8\x2a\x91\xc3\x16\xa1\xe4\x0a\x1a\xa3\x17\x7c\x21\x77\xc0\x9f\xb4\xa8\xc0\x3a\x6d\x84\x5a\x02\x97\x32\x04\x63\x61\x85\x06\x0b\xf8\x8a\xc0\xa5\x41\x5e\xed\xbc\x14\x52\x68\x1b\x4a\xba\x5b\xa1\x30\x54\xb5\x06\x4b\x27\x9e\x90\xec\x49\xcd\x2b\x88\x25\x14\x9b\x46\xe2\x06\x95\xf3\xb8\xb3\x9d\x7f\x41\xff\x04\xd0\x50\x99\x03\x9e\x0a\x85\xdb\xf1\xdb\x3f\xff\xe5\xaf\xf9\x48\xd4\xa0\xb4\xeb\x3d\x71\x2b\x54\x23\x00\x83\xae\x35\x8a\xae\x69\x33\xce\x6a\x2e\x24\xe5\x5f\x43\x69\x90\x3b\xef\x18\xec\x31\x4b\x20\x08\x97\x2f\x21\x83\xa2\x80\x31\x19\xd3\x06\xb2\x56\xad\x95\xde\xaa\x2c\xcf\x47\xa8\xaa\x90\xb4\xba\x55\xa5\xef\x9a\x25\x3a\x56\xb6\xc6\xa0\x72\xac\x53\x31\xce\x47\x00\x03\xdf\x99\xe2\x1b\xea\x0c\xea\xd1\x27\x6e\x8a\xc6\xe8\xe7\x1d\x0b\x58\xf2\xa7\x87\x57\x60\xda\x7b\xb4\x44\x37\x4e\x35\xe5\xa3\x11\xc0\x30\xe6\x10\x32\x78\x1b\x52\x2f\xc7\xf4\xef\xd7\xd9\xfd\xed\x04\x32\xa5\xa3\xd8\xb0\xe5\x6b\x82\x83\x8f\xde\xc7\xec\xb4\x75\x54\xd6\xa1\x31\x8a\xc6\x47\x1e\x13\xda\x1d\xbf\x9a\x0f\xb9\x60\x5c\x2e\x8f\xd3\x01\xd3\xb3\x69\x3b\x17\x55\x67\x59\x09\x79\xce\x9b\xff\x64\x04\xa6\x8b\x0e\x4c\xd9\x37\x2a\xde\xb0\x01\x4e\xfa\xdb\xc9\xff\xc1\x4e\x4e\x12\x4f\x83\xde\x7d\x36\x0e\xd4\x1e\xa5\x48\x58\x16\x99\x6f\xff\x47\x11\x3f\x85\xba\x84\xfa\xf7\xb2\xd1\x85\x8e\x61\x3b\x0e\xe9\x75\x90\xcd\xf0\xb5\x57\x43\x37\x44\xdd\x8b\xff\x98\x92\xdf\xbd\xb6\xbe\x85\x3a\x89\x82\x57\x95\x41\x4b\xbd\x18\xbe\x34\xda\x38\x2f\xbc\x8f\x15\xfa\x38\x87\x6c\x13\xcb\x26\xea\xbe\x64\xa1\x05\x2e\x56\xdc\xae\x2e\x16\xbb\xec\xdb\x0b\xa1\x0c\x09\x3f\x0c\xbb\xa3\x68\xa8\x34\xf1\xd6\x71\x28\x49\x75\xa2\x4b\x3f\x11\x67\x1f\x44\x88\x73\x0a\x99\x1f\x5c\x2f\x78\x4e\xe7\x87\xfe\x16\xe1\xdc\xe6\xbf\xd3\x83\x1f\xd3\x43\xa6\x7f\x81\x0c\xf6\x1d\x5e\xd4\xda\x6c\xb8\x1b\x67\x6f\x2c\x08\xeb\x53\x66\xdb\x86\x0c\x60\x35\x81\x9a\x4b\x49\xec\x4e\x9e\x12\x5f\xbe\xb1\xd9\xa4\x27\x87\xbd\xd5\x7c\x72\x60\x34\xe5\x89\xdf\x50\xba\xb3\x85\x3b\xdd\x54\x67\x1b\xa0\xc3\xbb\x4d\xf1\x1e\xfe\x98\x40\x62\x70\x48\x22\xaf\xa5\xfd\x14\x75\xd8\x9d\x2a\x23\x2f\x24\x9a\x23\x6f\xdb\x9e\xb7\x0b\xa2\xd2\xc4\xfe\x31\x2b\xfc\x7a\x1a\x7b\xbd\x87\xb4\x49\xd1\x99\xb6\x61\x9a\xd7\x41\x49\x0c\x0a\x25\x06\xd4\xd0\x25\xa8\xdb\x0a\x2e\xe1\x1e\x2d\x3a\xb0\x8e\x46\xa7\xae\x61\xfe\xf5\x66\x06\x0d\xc6\xc1\xf9\x5a\x53\x10\x04\xed\x8a\x1b\xac\xe2\x9a\xca\x48\xe4\xb2\x96\xad\x5d\x31\x2e\xe5\x38\x7f\x51\x90\x49\x6e\x1d\x73\xba\x2d\x57\x58\x31\xee\x0e\x2e\x9e\x1b\x48\x69\x95\xec\x31\xcd\x5b\x56\x71\x47\xeb\xe8\x60\x32\x7a\xbe\x1c\x48\x9c\x20\xfe\xee\xea\x01\x52\x0f\xbb\x40\xaf\x27\xb4\x41\x46\x6d\x30\x85\xa6\x24\xa7\x69\x15\x2f\x2a\x2c\x75\xd5\x03\x63\xaf\x32\x31\xa5\xd7\xa7\x9b\x79\x7e\x7f\x3f\x01\xc8\x4a\xdd\xca\xca\x0b\x36\xdc\x58\xec\x37\x20\x52\x73\x79\x30\xd5\x53\x2f\xf2\xfc\xa4\xcb\xb4\x0a\xb0\x81\xbf\xb4\xb9\x35\x5c\x18\x3b\xbc\x0e\x95\x4e\xa8\xee\xcc\xce\x92\xdc\x28\xf6\x7b\xcb\xd1\x15\x56\xae\xb8\x5a\x22\x5d\x75\xa6\xc5\x51\x20\xf1\xa3\xd9\x0a\x27\x6e\x50\xdc\xf4\x08\x29\x2a\xc4\x86\x95\x7a\xd3\x70\x13\x49\x65\x10\x45\x3e\x64\xfb\xde\x40\xd4\x96\x18\x1a\xf4\xf5\x49\x25\xe7\xd1\xc6\x6b\x87\x86\x1d\x2f\x15\xaf\x0d\xff\x17\x5b\xc7\x8f\x8f\x63\xcd\xd1\x87\x68\x9d\xdd\x14\xd4\xc5\x6c\xff\x8e\xf1\x42\x2c\xac\xcd\x84\x1a\x27\x36\xf4\xcc\x7a\x42\xb3\x1b\x9f\x7e\x3e\x4c\x86\xfd\xd2\xb9\x46\x1a\xce\xc3\xf0\x60\xa4\xf8\x75\x1b\xb6\x2b\xa4\x77\x96\x73\x34\x48\xe8\x21\xd5\x9b\xf6\x28\x1b\x98\xb9\x3c\x18\x31\x68\x4c\x9e\x9f\x0d\xb1\x0c\x2d\xbf\x4f\x6d\xb3\xe2\x36\x2c\xd7\x94\x5d\xff\x3b\x24\xb5\x3b\x9c\x42\x26\xf5\x32\x49\xe9\x71\x36\x0f\x9a\x21\xb9\xfd\x63\x0a\xf1\x49\x99\x1d\x0d\xa6\xee\x75\xb1\x69\xad\x83\x05\x3d\x28\xa4\xdc\x3f\x32\xe3\xb3\x86\xd8\x58\x2f\x27\xb0\x68\x1d\x6c\xb9\xed\x45\xba\x06\xf5\x56\x12\xc6\x4d\x5f\xf8\x7e\x90\x6d\xb4\x41\xe6\x8c\x40\x3b\x7e\x9b\x8c\x8e\x95\xb6\x6e\x02\x34\x9e\x7c\xe3\xf5\xa1\x74\xdc\x41\xe7\x07\xfc\xeb\xb8\x6b\x6d\x97\xab\x7f\x3e\x3e\x7e\x62\x0f\xf3\xfb\x2f\x57\xef\xe7\xec\xf3\xed\xec\xcb\xec\xea\x7a\xf6\xee\x7a\xfe\x22\x97\x8d\xc0\x13\x5a\x84\xd4\xd0\xd1\x00\x6c\x7a\x1c\x8f\x7b\xf7\x3a\x9f\xce\x71\xd9\xd5\xed\xc7\xbb\x49\xe8\xbd\x21\x96\x3a\x85\xfe\xb5\x4d\x8b\x0a\x4d\x20\xbf\x90\x5c\xbe\xb1\xd0\x5a\xc2\x56\xd7\x36\x1e\x40\xbd\xc9\x04\x4c\xa7\x3a\xae\x43\x97\xb4\xf8\x53\x90\x16\x12\x23\xa6\x83\x6b\x83\xff\x11\x38\xde\x96\x8e\xa1\xdc\xe1\x86\xdd\x8c\x7e\x09\x00\x00\xff\xff\x2d\x0a\xc0\x52\xd1\x11\x00\x00") +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") func etcNginxLuaBalancerLuaBytes() ([]byte, error) { return bindataRead( @@ -200,7 +200,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\x5b\x8f\xdb\xb8\x15\x7e\xf7\xaf\x38\xd0\xcb\x4a\x85\xaa\x99\xd9\x60\x81\xc5\x14\x46\x91\x16\x69\x1b\x60\x91\x16\xe9\x76\xfb\x10\x2c\x04\x5a\x3a\xb6\x59\x73\x48\x2d\x49\x8d\xc7\x18\xf8\xbf\x17\x24\x25\x8a\xba\xf9\xb2\xdd\x49\x13\x24\x01\x26\xb6\xa8\x73\xe3\x77\xae\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\xe6\x77\xec\x9b\x64\x51\x91\x62\x47\x36\x98\x55\x44\x6f\x61\x69\xe9\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\xa1\x08\xf9\x16\x0b\xa7\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\x2e\x9a\xaf\x0b\x70\x17\x7c\xf3\x94\x0f\x34\xe1\xfe\x81\xb4\x46\xac\x6b\x5e\x68\x2a\x38\x94\xb4\xd0\xf9\x06\x39\x4a\xa2\x85\x8c\x1f\x09\x53\xc9\x02\xc0\x51\xe5\xe6\x2e\x2c\xe1\x19\xf2\x9c\xf2\x12\x9f\xcc\xf7\x05\xd8\x7f\x1b\x34\x77\x5a\x39\xb1\x42\xb6\x4e\x61\x87\x87\xa4\xb9\x0f\x20\x51\xd7\x92\x83\xb9\x93\xe5\x46\xf0\x87\x1d\x1e\x7e\x6e\x6e\x23\x2f\xd3\xe6\xab\x9a\x91\x94\xc2\x23\x61\x9d\x38\x18\x4a\x82\xa5\x21\x08\xee\x37\x0a\xb5\xac\x31\x05\x4e\x59\x0a\x6b\xc2\x14\x8e\x35\x96\xc8\x50\xe3\xe5\xe6\xdf\x2b\xd4\xb1\xb5\x88\x53\x6f\x51\x20\x6f\xcd\x6a\xb5\xcd\x09\x63\x43\x91\x43\x69\x63\x56\xbb\x1d\xb7\x13\x65\x97\x8e\x0b\xf7\xe7\xd5\xeb\x07\xd4\x44\x93\x15\xc3\xf8\x39\xa4\x3e\xa6\xce\x3f\xc9\x02\x79\x39\xf2\x6b\x13\x30\x81\x6b\x39\x79\xc0\xd4\xa8\xae\x04\xe5\x5a\xa5\xc0\x56\x39\x61\x9b\xa4\xd3\xe5\x5c\x6b\xe8\x60\x69\x3f\x9c\x91\x9e\x05\x96\x01\xbb\xbd\xf5\x21\x62\x82\x94\xbf\x6f\x02\x2d\x32\x2e\x71\x52\x53\xbb\x8b\xc0\xb0\x12\xd7\xa4\x66\x3a\x0f\x85\x19\x7d\xcf\xa4\x2c\x25\x2a\x73\x19\xdd\xde\xde\x66\xcd\x5f\x94\x42\x25\xa4\x89\x8b\xe8\xfb\xdb\xef\x6f\xa3\x63\x3a\x4b\x7b\xd7\xa7\xbd\x33\xb4\xc7\xa1\xda\x36\x7f\x1a\xad\x36\x1f\xa4\x6c\x97\x61\x39\x81\x57\x34\x20\x8a\xd2\xf1\x26\x52\x88\xa4\xa8\x79\x99\x4b\xb1\xa2\x3c\x4a\x7c\xfa\x99\x5c\xbb\x40\x7a\x48\x36\x23\xdf\x90\x18\xc1\xc7\x91\x8b\x29\xa7\x3a\x4e\x5a\x8d\xb6\x8e\x98\xed\x1d\xfd\x8a\xad\x26\xbd\x25\x57\x53\x7a\x4b\x61\xa1\xe8\xdd\x30\x8a\x7b\x0b\x12\x95\x3e\x4c\xd3\x06\xf0\x0e\x0a\xca\xd0\x01\xde\xde\xb6\x84\xf9\x92\xc2\x71\x1f\xa4\x0f\xc4\x49\x1b\x96\x7d\x0d\x26\xa6\x5c\x86\x98\x7a\xe7\xb9\x9b\x0b\x9f\x7d\x9e\xdb\xe7\x5a\xcd\x4f\xd1\x34\x32\x7d\x21\x3d\x6f\x96\xa5\xea\x38\xf3\xbf\x66\x7c\xd3\x15\x48\xb5\x25\x12\xcb\xa0\x5e\xb6\xb8\xb5\xb8\x0e\x70\x7a\x3e\x26\xe9\x14\x65\xce\x88\xd2\xb9\x16\x75\xb1\xc5\x32\x27\xfa\x04\xe7\xd1\x7d\x3c\x12\xe7\x9b\xb4\xc1\x65\x73\x1a\x96\x7f\xbf\x7e\xff\xce\xa4\xce\x9e\x48\x1e\xb9\xa5\xb7\xef\xfe\xf2\x77\xb3\x44\xf9\x5a\x34\x4b\x6f\xde\xbf\x37\x2b\x28\x65\xb3\xf0\xb7\x1f\x7f\xfc\x47\xfe\xcf\x37\xef\x7f\x7a\xfb\xe7\x37\xf9\xbf\xde\xbd\xfe\xe9\xf5\xdb\x1f\x5e\xff\xe9\x87\x37\xb0\x84\xef\x6e\x5f\x35\x98\xb4\xed\xcf\x14\x09\x2c\x3f\x44\x7c\xf3\x94\xb5\xbb\xb3\xc5\x62\x14\x81\x13\x4c\x36\xec\xb2\x36\x5c\x3a\xb6\x76\x65\x82\xc5\xe6\x42\x47\x69\x2f\xe7\x25\x8b\x62\x17\x48\x15\xc5\x6e\x82\xb4\xb5\x2f\xb3\xe9\xe8\xa9\x6d\x4b\x3d\x41\x6d\x35\x74\xe4\xfd\x0c\x9a\x32\xdc\xa6\x6c\x2d\x89\x71\x56\xb0\x01\xbb\x3c\x41\xef\xf2\xb9\x23\x74\xd7\x8b\x2e\x86\x60\x09\x12\x7f\xa9\xa9\xc4\xd8\x5b\x15\x35\x1d\xa3\x44\x55\x48\xba\xc2\x38\xfa\xe0\x43\x4e\xa3\xd2\x3f\x47\x69\x10\x30\x0b\xdb\xa0\xeb\x2a\xee\x2d\x41\x57\x7d\x90\x97\xc9\x62\x01\xa0\x91\xc8\x52\xec\xf9\x90\xd0\x55\xad\xc6\x72\x5b\x80\xfb\x71\x60\x6a\x68\xdf\xc5\x69\xe3\xc0\xee\x8e\x71\x51\x0a\x03\x2f\xa4\x03\xb8\x52\x68\xf1\x38\x5a\xc5\x6b\x21\x81\xa6\xad\xe6\xdc\xf6\x35\xca\x81\x56\x84\x4a\x15\xb7\x06\x25\x50\x8a\x26\xf1\x06\xe8\x86\x8c\x06\x61\x4e\x59\xdb\x0f\x83\x6d\x77\x28\x7a\xeb\x0a\xc2\x58\x9c\xdc\x0f\x61\x9c\x01\x72\xa2\x0e\x67\x0a\x75\xfe\x20\x24\xe6\x5a\x52\x8b\xd9\x44\xfd\x71\x66\xcc\xf3\x17\xb5\x94\xc8\x75\x5e\xa1\x0d\x83\xf3\x12\x0c\xa8\x19\x59\x6b\x94\xad\xa0\xd3\x6c\x2d\x02\x00\x2b\x5c\x1b\x63\x91\x14\xdb\xf1\xee\x5c\x61\xcc\x36\xa8\xf3\x6a\x4b\x14\x06\x48\xfa\x9b\x6d\xcd\x0a\xcd\x69\x2b\x7e\xd6\x0e\x3d\xc3\x56\x12\x12\x3b\xc7\x67\x54\x75\x2d\xce\x1b\xb2\xf2\x96\xdb\x71\x70\xc2\xfe\xce\x87\xd6\xc2\x25\x13\x9b\xb1\xf3\xce\x6c\x73\x72\xa3\xe3\xba\x1b\x19\xd9\x01\xf2\x9d\x11\x00\x54\xc7\x91\x1b\x9f\x96\xc6\x17\x29\xd8\x06\xd0\xf7\xc8\x9e\x28\x30\xf1\x85\xe5\x94\x85\x21\xa0\x59\x25\xc5\xd3\x21\xaf\x2b\xa5\x25\x92\x87\xbc\x99\xeb\x26\x06\x8f\x85\xe7\x76\xb9\x3a\x56\x9b\xab\xca\x40\xaa\xaa\x43\x26\x78\xec\x25\xa4\x10\xf5\xc8\xa2\xa4\x13\x45\x94\x42\xa9\xb3\x2d\x51\x39\x17\x39\x4a\x29\xa4\x8a\x7b\x29\x92\x0c\x69\x55\x75\x88\xa7\x75\x27\xd9\x9e\xa8\xdc\xed\x3b\x4e\x4e\x43\x17\x0c\x64\xb3\x08\x72\xa1\x7f\x0b\x14\x83\xe1\xf0\x73\xc1\x90\x0b\x3d\x89\xe3\xe9\x84\x08\x8a\xf5\xcb\x64\x85\x57\x70\x3e\x35\x7a\xfe\xb5\xc5\xcd\x78\x54\xd5\x45\x81\x4a\xad\x6b\xc6\x0e\xa6\xce\xbe\x94\x5f\xbb\x49\x5e\x4f\x38\xb4\x7b\x4c\x8f\x36\xa8\xa3\x64\xc0\xdc\x2f\xeb\x13\xfc\xfd\xa7\xf6\xa8\x4f\x3f\x29\x2e\xac\xf2\x97\x09\x0c\x39\xc2\x60\x9b\x98\x50\xb2\x71\x1f\x08\xaa\xe9\xa5\x8f\x6e\x81\x4b\x7f\x75\x48\x0f\x60\x0f\xeb\x41\xbe\xa7\x7a\x1b\x3f\x10\x5d\x6c\x4d\xfd\x77\x4f\xca\x49\x3a\x76\xe5\xa4\xe0\xb1\x4b\xc6\xb2\xef\x66\x39\x87\xe8\x8f\x79\x07\xc8\x38\x48\x86\xa8\xfb\x56\xb7\x41\x7d\x5f\x30\x24\x32\x88\xd9\x73\xd3\xc1\x85\x0c\xa1\xa9\x9e\xe5\xb7\x76\xfe\xf8\x59\xfc\xab\xf3\x3b\x64\x1c\x24\x67\xda\x97\xeb\x09\x2f\x53\xd7\x66\xba\x7e\x37\xfd\x5d\xed\xf2\xbb\xbb\x81\xcb\x5f\x35\x2e\xff\x62\xca\xe6\xc7\x8e\xe9\x9e\x0f\xff\xbf\x51\xed\x9c\xef\xbc\x3e\x17\xd5\x6e\x1c\x5f\xba\x33\x59\x17\x48\x0a\x94\x16\x12\xcb\xe0\x60\x91\xf0\xf2\x63\xb6\xf2\x2b\x1e\x19\x8c\xe1\xbd\x1a\x16\xf2\x1a\xe7\xb5\x9b\x98\x9c\x6b\x26\xab\xe4\x30\x65\xbe\xfd\x9a\x32\x5f\x4a\x1b\xf0\x09\xf3\xed\x65\x09\x53\x0a\x74\x0f\x2b\xed\xdb\x80\x41\xe2\xf8\x23\x63\x05\x5a\x80\x9d\x8c\xc1\x1d\x45\x7f\xbe\x39\xc3\x29\x9b\x65\x56\x33\xcc\xab\xde\xe1\xc4\x17\x93\x48\x5f\x47\xf6\x8f\x38\xb2\x4f\xa7\xeb\x9a\x50\xa6\x60\xbf\x45\x0e\x5c\xb4\xa1\x06\xf8\x44\x95\x56\x2f\x94\x84\xa3\x83\xb1\xe7\xe3\x97\x13\xf2\xbf\x22\x18\x89\xc4\x1c\x7f\xa9\x09\x8b\x0d\xee\x4a\x13\x5d\xab\x14\xbe\xbb\x7d\xf5\xf9\x87\xed\xb5\xa7\x39\xa6\x95\x50\x0e\xee\x20\x86\x89\x0d\x08\x09\xa7\xce\x76\x4c\x84\xb7\x43\x9b\xc3\xfa\x64\x4c\x9f\x39\xe4\xe1\xa2\xc2\x68\xae\xb4\x58\xf1\x7d\x4f\x1a\x64\x6b\xa5\x61\x85\xcd\x61\x9d\xb1\xdd\xbf\xd9\x10\xd2\xec\x20\x85\x55\xad\x83\x53\x51\xa0\xfc\x1e\xac\xa2\x69\x40\x4e\x1e\xdc\x53\x4e\x75\xbe\x17\x72\x87\xf2\x9a\xf3\xfb\x66\xf7\x9a\x3e\xb8\xd7\xa2\x7e\x7b\xf8\x88\xb2\xd7\x23\x29\xd7\x28\x1f\x09\x73\x92\xbb\x73\xe9\x9a\x17\x71\x12\x20\xd3\x3b\x08\xb7\x2f\x43\xb2\x12\x0b\x51\xf6\x80\x7d\xf2\xfc\x4f\xd7\x9e\xc9\x5f\x71\xc0\x3e\x15\x46\xea\xc0\x0b\x4f\x35\x89\x54\x33\xcb\x98\x49\x1e\xcb\xae\x3e\x1a\x46\xa0\xaa\x7d\x27\x35\x73\xfa\x1a\xbc\xf3\xb2\x21\xd5\x6a\xca\x4b\xa2\xc9\x64\x68\x8d\x5e\xf3\x9f\x18\x03\xd4\xb9\x9a\xa8\x6c\x4d\xbc\xb0\xe2\x04\x21\x73\xb2\x9c\xa8\xb0\x9c\xcc\xa5\xed\x99\xc3\xce\xba\x2a\x89\x46\xe5\xbb\x8c\x45\xf5\xa5\x20\x7d\x1e\x81\x9a\x0d\x7f\x35\x71\x1c\xcf\x69\x57\xf4\xa6\x0b\xfd\xd0\x67\xb6\x4f\xbf\xee\xe7\x36\x3d\xde\x26\x05\xdd\x5b\xf7\xac\xf7\x06\x3d\x85\xc8\xff\x3e\x67\x5a\x1e\xd3\xd7\xca\x1c\xbe\x95\x1f\xe8\xf8\xc8\x03\xda\x94\x16\x89\x26\x32\xe7\x67\xe4\x97\x89\x6e\x4f\x03\x70\x41\xdf\x3c\x17\x60\x99\xfb\xc9\xd2\x90\x71\xfe\x9d\x87\x77\xe2\x6c\x9a\x8d\x79\x7a\xce\xbf\x36\x3d\x5d\x7c\x7d\x12\x79\xd9\xfb\xc5\xd1\xd7\xcc\x3c\x97\x99\x9f\x5e\xdc\x87\x0e\xfc\x5f\x23\xff\x94\xfe\xab\x52\xe1\x12\x41\x93\x03\x96\xfd\xef\xbf\x01\x00\x00\xff\xff\x35\x19\x10\x9e\x5e\x2b\x00\x00") +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") func etcNginxLuaTestBalancer_testLuaBytes() ([]byte, error) { return bindataRead( diff --git a/rootfs/etc/nginx/lua/balancer.lua b/rootfs/etc/nginx/lua/balancer.lua index b7d104a19..520e24f4a 100644 --- a/rootfs/etc/nginx/lua/balancer.lua +++ b/rootfs/etc/nginx/lua/balancer.lua @@ -28,6 +28,7 @@ local function get_current_backend() local backend = backends:get(backend_name) if not backend then + -- TODO(elvinefendi) maybe force backend sync here? ngx.log(ngx.WARN, "no backend configuration found for " .. tostring(backend_name)) end @@ -139,6 +140,7 @@ local function 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) if err then ngx.log(ngx.ERR, string.format("error when setting up timer.every for sync_backends: %s", tostring(err))) @@ -155,14 +157,14 @@ function _M.call() return error("must be called in balancer or log, but was called in: " .. phase) end - ngx_balancer.set_more_tries(1) - local host, port = balance() if not host then ngx.status = ngx.HTTP_SERVICE_UNAVAILABLE - return + return ngx.exit(ngx.status) end + ngx_balancer.set_more_tries(1) + local ok ok, err = ngx_balancer.set_current_peer(host, port) if ok then diff --git a/rootfs/etc/nginx/lua/test/balancer_test.lua b/rootfs/etc/nginx/lua/test/balancer_test.lua index 04a5ababa..c48f6f257 100644 --- a/rootfs/etc/nginx/lua/test/balancer_test.lua +++ b/rootfs/etc/nginx/lua/test/balancer_test.lua @@ -71,7 +71,8 @@ local function init() WARN = "warn", INFO = "info", ERR = "err", - HTTP_SERVICE_UNAVAILABLE = 503 + HTTP_SERVICE_UNAVAILABLE = 503, + exit = function(status) return end, } package.loaded["ngx.balancer"] = mock_ngx_balancer package.loaded["resty.lrucache"] = mock_lrucache @@ -218,13 +219,11 @@ describe("[balancer_test]", function() mock_backends._vals = {} 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.are_equal(ngx.status, 503) 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_not_called() end) end)