罗泽轩
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
罗泽轩
a019b4e4d0
test: improve chash-balance cases ( #2920 )
...
Fix #2914
2020-12-02 15:12:00 +08:00
罗泽轩
a63b6b8c6e
feat: allow create consumers with multiple auth plugins ( #2898 )
...
Fix #2850
2020-12-01 15:42:59 +08:00
罗泽轩
44855ec1a7
ci: make it work under OpenResty 1.19 ( #2768 )
2020-11-30 10:32:35 +08:00
Yuelin Zheng
d7e59113d5
feat: How to distinguish whether the 5xx status code (eg 500) comes from upstream or apisix ( #2817 )
...
close #2501
2020-11-27 18:33:02 +08:00
Yousa
53e2d5387f
fix: remove upstream 'Server' header info. fix #2714 ( #2731 )
...
fix #2714
2020-11-18 13:15:31 +08:00
Firstsawyou
2ba28ff6a7
chore: sort the request headers output by the _M.uri and _M.old_uri function in t/lib/server.lua ( #2696 )
...
fix #2636
2020-11-12 14:37:51 +08:00
dabue
70453aece3
chore(core): enabled websocket in route and service ( #2593 )
2020-11-10 16:56:38 +08:00
罗泽轩
960077f245
fix(echo): modify response body correctly ( #2561 )
...
Fix #2427 , #2554
2020-10-29 16:48:53 +08:00
Firstsawyou
d1729c0af3
feat: In dns parse, when the parameter resolvers
is empty, the local dns is used as resolvers
by default ( #2424 )
...
fix #2422
2020-10-17 13:44:53 +08:00
dabue
40577ee1e2
chore: remove the folder 'logs' in root and replace baidu.com with github.com in test cases ( #2374 )
...
* rm log
* replace baidu.com to github.com in testcases
* keep folder logs
* remove the folder logs
* update Makefile
2020-10-12 23:49:43 +08:00
L
720d135fd2
fix: Update error message when Route doesn't exist ( #2304 )
...
Fixes #2302
Co-authored-by: YuanSheng Wang <membphis@gmail.com>
2020-10-06 11:48:52 +08:00
YuanSheng Wang
50c99a5e3b
bugfix: create etcd object in xpcall
, this step may fail ( #2312 )
...
* bugfix: create the etcd object in `xpcall`, it may fail, the return values of `etcd.new` should be `res, err`.
fix issue: #2310
1. The old process, if creating etcd fails, etcd data will no longer be synchronized. We need to create the etcd object in xpcall.
2. the return value should be res, err of etcd.new.
* test: old test case is unstable, should delete some checkpoint which is wrong.
2020-10-05 10:22:28 +08:00
YuanSheng Wang
05840ca9e2
test: wait for more time and check the error log, old way is unstable. ( #2341 )
2020-09-30 17:05:46 +08:00
Wen Ming
13b0968340
Revert "feat(http-logger): support for specified the log formats via admin API ( #2294 )" ( #2307 )
...
This reverts commit 89f89f3004
.
2020-09-24 23:50:22 +08:00
YuanSheng Wang
89f89f3004
feat(http-logger): support for specified the log formats via admin API ( #2294 )
2020-09-24 20:45:50 +08:00
Firstsawyou
a651a29e20
feature: allow empty service
object, it does not contain any upstream
and plugin
( #2259 )
2020-09-21 16:52:18 +08:00
YuanSheng Wang
03d818e175
test: before creating and deleting routes in batches, clear all routes first ( #2253 )
...
* test: set larger timeout.
2020-09-18 18:43:02 +08:00
YuanSheng Wang
4f900390f9
bugfix: independently check the "disabled" field to avoid schema
ve… ( #2099 )
...
* bugfix: independently check the "disabled" field to avoid `schema` verification
with other parameters.
2020-09-17 22:31:02 +08:00
YuanSheng Wang
68b1f9cc57
bugfix: clear all cached object when got delete
action, and removing ( #2168 )
...
stale boolean data in table `self.values` with a safer way.
2020-09-17 09:30:44 +08:00
YuanSheng Wang
12a0b13145
bugfix: use the route's has_domain
if it contains any upstream object. ( #2211 )
2020-09-15 12:12:09 +08:00
nic-chen
502310bef6
feat: support different modes to pass host to upstream ( #2132 )
...
* test: using `httpbin.org` for test cases.
* doc: add doc
* remove golang apt repository and runtime in travis.
* download proto file
Co-authored-by: Yuansheng <membphis@gmail.com>
2020-08-30 22:43:28 +08:00
redynasc
98bb5933d6
feature: implement ewma
balancer for upstream node ( #2001 )
...
ewma is a different balancing implementation that will generate a weight for every backend IP based on the last server response time, basically it tries to dispatch more requests to the backends that reply faster, supposing that they are less loaded.
fix #1996
2020-08-29 23:14:16 +08:00
YuanSheng Wang
cf882bda1e
feature: divide config.yaml into two files config-custom.yaml & confi… ( #2023 )
...
* feature: divide config.yaml into two files config-custom.yaml & config-default.yaml .
fix #1923
2020-08-18 20:18:55 +08:00
YuanSheng Wang
c2a7359b27
update radixtree to version 2.2 . ( #2061 )
...
fix #2058
* fixed test
2020-08-16 16:32:29 +08:00
Swayam Raina
6e0da454d1
feature: add apisix-version info to headers in APISIX core ( #1961 )
...
related #1877
2020-08-15 07:24:33 +08:00
YuanSheng Wang
6c8a6c3c54
bugfix: when the plug-in configuration that is bound to the consumer is ( #2028 )
...
fix #2019
2020-08-12 09:11:40 +08:00
YuanSheng Wang
05f30e1e15
bugfix: support parameter way to match request in route. ( #2012 )
...
fix #2008
2020-08-07 08:13:58 +08:00
YuanSheng Wang
3d8150b208
test: old test case is unstable, running fail sometimes. ( #1925 )
2020-07-31 21:24:31 +08:00