Commit Graph

166 Commits

Author SHA1 Message Date
John Bampton
9fafa43b37
chore: fix spelling, grammar and JSON example (#3821) 2021-03-15 08:56:43 +08:00
John Bampton
4ebccafbdc
chore: fix spelling (#3253) 2021-03-14 22:53:34 +08:00
罗泽轩
837f4d9a6d
test: make node/priority-balancer/sanity.t stable (#3816) 2021-03-12 18:06:32 +08:00
罗泽轩
8dcbe4e00d
feat: let balancer support priority (#3755)
Fix #1809
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-10 14:56:26 +08:00
罗泽轩
9885103a45
test: clean up malformed etcd data (#3743)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-03-04 09:12:50 +08:00
nic-chen
7827d094c4
fix: validate plugins configuration of plugin_config via incremental sync (#3700) 2021-03-01 14:43:44 +08:00
罗泽轩
e58a55fbc6
fix(chash): ensure retry can try every node (#3651)
Previously the default number of retry is equal to the number of node,
but the same node will be tried again according to its weight.

Also ensure the same picker will be used in the whole request,
especially during the retry.
2021-02-27 22:17:22 +08:00
罗泽轩
fa028c10a7
fix: cache server picker for nodes without port (#3665)
Compare with the original node which is not changed after filled
2021-02-27 20:01:05 +08:00
罗泽轩
16f017dfed
ci: avoid requesting IPv6 address as GitHub Action doesn't support it (#3656) 2021-02-24 16:09:25 +08:00
罗泽轩
013db0dd2f
feat: support to bind plugin config by plugin_config_id (#3567)
Fix #3532
2021-02-20 20:42:10 +08:00
罗泽轩
2401ad5043
fix: don't use port 80 for all schemes (#3544)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-20 16:01:00 +08:00
nic-chen
82018b9cea
fix: should assign value to api_ctx.global_rules before running global rules (#3595)
related issue #3396
2021-02-18 11:34:59 +08:00
John Bampton
696cb50ba5
feat(CI): check for trailing whitespace (#3250) 2021-02-16 12:14:46 +08:00
nic-chen
13f3139fbb
change: global rules should not be executed on the internal api (#3396) 2021-02-10 12:01:58 +08:00
罗泽轩
653e15350b
change: default to cache DNS record according to the TTL (#3530)
Since lua-resty-dns-client provides an internal cache, we don't need to
cache it twice.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-10 11:41:13 +08:00
罗泽轩
e1dbe2c4a4
feat: support DNS AAAA record (#3484) 2021-02-05 09:00:20 +08:00
罗泽轩
563b259a5a
feat: switch resolver to lua-resty-dns-client (#3442)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-02-02 09:07:40 +08:00
大可
ba11e7fa0a
feat: ewma use p2c to improve performance (#3300) 2021-01-29 17:17:22 +08:00
syz
0e1cefb6eb
fix: upstream dns resolver failed response 503 (#3398)
Co-authored-by: spacewander <spacewanderlzx@gmail.com>
2021-01-29 16:23:20 +08:00
罗泽轩
3a09f8a8d5
feat: support specifying https in upstream to talk with https backend (#3430)
Fix #3336
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-27 20:18:57 +08:00
halfcrazy
8d61d315b8
fix: proxy_set_header Host $host may lose port info (#2079) 2021-01-27 13:16:07 +08:00
罗泽轩
da62190d95
feat: allow to pass SNI in HTTPS proxy (#3420)
Fix #2988
2021-01-26 23:36:12 +08:00
罗泽轩
a3c7c4098b
fix: remove stale checker before adding new one (#3427)
lua-resty-healthcheck remove target according to the `ip, port,
hostname` tuple. If the newly added target has the same tuple, it will
be removed accidently.
2021-01-26 23:33:21 +08:00
罗泽轩
3db8ebec26
feat: support gRPCS (#3411) 2021-01-26 11:04:16 +08:00
罗泽轩
8439c8d98d
test: make ci stable (#3413) 2021-01-26 00:01:48 +08:00
罗泽轩
d698220341
fix: ignore the case of configured host (#3377)
Fix #3357.
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-22 10:18:50 +08:00
罗泽轩
bf16615583
test: avoid unstable case caused by delete upstream 1 (#3385)
Test cases from other files may still refer upstream 1.
2021-01-21 23:40:58 +08:00
罗泽轩
c030783607
fix: support upstream_id & consumer with grpc (#3387)
Fix #1646.
2021-01-21 23:38:19 +08:00
罗泽轩
319c3ebefd
test: make ci stable (#3329) 2021-01-20 15:58:44 +08:00
罗泽轩
da99a03cbf
test: add more test to check if checker is stopped. (#3350)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-20 13:32:26 +08:00
罗泽轩
4cf30bf2ac
refactor: keep health checker with the upstream's parent (#3325)
A upstream's parent can only have one running checker.
Previously, when a checker is evicted by lrucache, it is still running.
Now health checker & upstream in used is 1:1.
2021-01-18 22:21:39 +08:00
罗泽轩
abb7841d29
test: fix least conn case (#3321) 2021-01-18 13:17:39 +08:00
罗泽轩
6fe399c7d6
fix: avoid caching outdated discovery upstream nodes (#3295)
Fix #2369
Fix #1838

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-18 11:04:13 +08:00
罗泽轩
f349cc0dd4
feat: load balance by least connections (#3304)
Fix #3086

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-18 10:25:58 +08:00
罗泽轩
bbbdf58d55
refactor: the parent of upstream should point to its original src (#3287)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-15 14:43:39 +08:00
ken zhou
d1d6533176
feat: support hash on vars_combinations (#3278)
related #3261
2021-01-15 10:45:46 +08:00
罗泽轩
fcd880f23f
chore: enhance upstream discovery (#3269)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-14 09:47:24 +08:00
罗泽轩
4de254ad27
fix(roundrobin): don't retry a node again (#3217)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2021-01-11 22:25:53 +08:00
阿姆斯壮
500e42d4ec
fix: make set_more_retries() work when upstream_type is chash (#2676) 2021-01-07 19:19:52 +08:00
罗泽轩
81c1c7c077
change: don't treat route segment with ':' as parameter by default (#3154)
Fix #3134
2020-12-30 22:13:05 +08:00
罗泽轩
560a2fe3ab
change: remove k8s_deployment_info (#3098)
Fix #3068
2020-12-22 22:28:47 +08:00
罗泽轩
fd2db606a9
feat: rewrite handwriting validation with jsonschema (#3021)
Fix #2967. Some plugins can't be rewritten, so I have to keep them.

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-18 16:55:23 +08:00
罗泽轩
d16ac7a021
feat: share etcd client (#2932)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-15 20:18:25 +08:00
罗泽轩
8420a0f39d
feat: return 502 for upstream not found in the DP (#3050)
Fix #3035

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-15 18:04:10 +08:00
John Bampton
511f52a856
refactor: remove trailing whitespace (#3040) 2020-12-15 08:56:20 +08:00
John Bampton
dcdbc1cc9e
chore: spelling (#3027) 2020-12-13 19:31:24 +08:00
罗泽轩
cc9c1bb090
ci: check misspell (#3011)
Fix #3009
2020-12-10 23:05:36 +08:00
罗泽轩
270aef027a
test: make node/merge-route.t stable (#2999)
The time_window field might be the last one, which doesn't have ','

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
2020-12-09 17:08:26 +08:00
tzssangglass
c7b198f969
feat: support enable/disable route (#2943)
fix #2737
2020-12-09 10:38:21 +08:00
罗泽轩
08d25ebc51
test: make node/merge-route.t stable (#2978) 2020-12-07 20:21:12 +08:00