Alex Zhang

Results 438 comments of Alex Zhang

@SuperSandro2000 You can try `0.1.1` release as I merged the patch already :).

Agree +1. We may implement a plugin to support the custom error page.

I think submit the pull request to this repo would be better.

@alex8224 You may implement your own balancer and use it in `Upstream` objects.

> @alex8224 You may implement your own balancer and use it in `Upstream` objects. See https://apisix.apache.org/blog/2021/07/28/release-apache-apisix-2.8/#new-way-to-develop-support-for-custom-balancer .

这里不加不会影响到功能,但是从代码严谨的角度来说是要加。欢迎提交 PR。

@fankeke 你的方案,如果持有 sync timer 的 worker 进程 crash 了,怎么保证新起来的 worker 可以重新创建出 sync timer 来?

那这个 worker_id 应该要放到共享内存里。

从你的伪代码来看,持有 sync timer 的 worker 如果挂了,新起来一个 worker,也是随机一个 `worker_id`,进入到 `start` 函数,如果这个随机出来的 `worker_id` 不等于 `ngx.worker.id()` 的值的话,此时全局就没有 sync 定时器了。

@fankeke 不过 os.time 的问题,可能是会有精度不够的问题,可以在这个基础上结合一个随机数,哈哈