You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/03 05:55:17 UTC
[GitHub] [apisix-dashboard] yangvipguang opened a new issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
yangvipguang opened a new issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360
### Issue description
dashboard版本:2.10.1
ETCD版本:3.5
目前我测试了一下,如果我要备份etcd,然后删除掉个别配置(比如upsteam等),如果我要恢复之前备份的etcd数据,这个时候dashboard 不能实时更新显示恢复之前的数据,需要重启一下dashboard的服务才可以,不知道这算bug还是就预期内的。
### Expected behavior
目前我测试了一下,如果我要备份etcd,然后删除掉个别配置(比如upsteam等),如果我要恢复之前备份的etcd数据,这个时候dashboard 不能实时更新显示恢复之前的数据,需要重启一下dashboard的服务才可以,不知道这算bug还是就预期内的。
### How to Reproduce
1、备份etcd数据
2、备份后修改一些数据(比如upstream等)
3、恢复etcd数据
4、刷新dashboard页面
### Screenshots
_No response_
### Environment
- apisix version (cmd: `apisix version`):
- OS (cmd: `uname -a`):
- OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`):
- etcd version, if have (cmd: run `etcd --version`):
- apisix-dashboard version, if have:
- Browser version, if have:
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] zaunist commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
zaunist commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1058750244
Hi, @yangvipguang. We need to discuss how to solve this problem, anyone is welcome to make suggestions!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] Baoyuantop commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
Baoyuantop commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1058744181
This seems to be as expected, there is a caching layer between Dashboard and etcd.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 edited a comment on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
bzp2010 edited a comment on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1062723910
This seems to be automatic in the etcd client, which will handle the reconnection logic automatically. We have no way to add a callback to know that this happened. If this is an oversight on my part, please point it out. 🤔 @jwrookie
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1060118640
What kind of backup/restore means do you use? I don't know much about etcd and am not sure that data changes in any case would trigger an Watch push.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] jwrookie commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
jwrookie commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1058824059
> This seems to be as expected, there is a caching layer between Dashboard and etcd.
you are right, we have a layer of cache
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] jwrookie commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
jwrookie commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1062741480
you are right, but we can set dialOption to control the behavior of reconnection
ref: https://pkg.go.dev/go.etcd.io/etcd/client/v3#Config, https://pkg.go.dev/google.golang.org/grpc@v1.44.0/backoff
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] jwrookie commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
jwrookie commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1060272167
According to etcd doc, `Disaster recovery` requires a restart of etcd, which means that all previous client links will be invalidated, and the old data you see is just the program's cache
As far as I know, `grpc-go` will manage failed layer 4 connections, so when `Disaster recovery` occurs, we reload the local cache and the problem will solved
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] bzp2010 commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
bzp2010 commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1062723910
This seems to be automatic in the etcd client, which will handle the reconnection logic automatically. 🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] jwrookie commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
jwrookie commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1057938509
looks not a dashboard bug, the data is fetched from etcd in real time.
If you want, we can communicate by voice
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-dashboard] yangvipguang commented on issue #2360: Etcd 备份恢复后dashboard 服务无法实时更新
Posted by GitBox <gi...@apache.org>.
yangvipguang commented on issue #2360:
URL: https://github.com/apache/apisix-dashboard/issues/2360#issuecomment-1058768217
@zaunist ok, I'm going to try a few times to see if I can reproduce this problem every time
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org