Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apollo Helm 2.0.1版本的 Portal 是否一樣支持一個環境多個metaserver ? #4673

Closed
tsiayutai opened this issue Dec 6, 2022 · 13 comments
Labels

Comments

@tsiayutai
Copy link

您好 想请问一下 Apollo Helm 2.0.1版本的 Portal 在value.yaml配置metaserver的时候,是否能在同个环境例如 : PRO 配置多个 metaserver位置?
在虚拟机版本环境下设置过没问题,但自己在Helm 的版本在同个环境配置超过一个 metaserver的时,看portal的系统配置 metaserver位置有增加,但是config server和admin server位置还是只有一个,请问是原本就不支持还是我配置可能有问题呢?

@nobodyiam
Copy link
Member

The idea behind helm chart installation is to use Kubernetes service for service load balancing and high availability, so there is no need to configure multiple meta/config/admin servers.

@tsiayutai
Copy link
Author

了解~ 但因为我们的PRO生产环境是有多個机房,所以才會想說能不能再metaserver 同個環境配置多個位置。

@tsiayutai
Copy link
Author

所以helm版本确实是不行这样配置的是吗?

@nobodyiam
Copy link
Member

For apollo-portal, you could configure multiple meta servers but only the first available one will be used.
For apollo-client, you could configure the meta server in the same idc.

@tsiayutai
Copy link
Author

了解~感谢大神
这边想在借问一个问题,能设定多个portal吗, 还是 portal 只能配置一个呢?

@nobodyiam
Copy link
Member

多个 portal 是指多台 portal server?这个是可以的

@tsiayutai
Copy link
Author

如果我一个loadbalance 的 vip 回源到 3台 portal server,有需要做會話保持吗?

@nobodyiam
Copy link
Member

1.9.0 以后的版本会默认开启数据库 session 保持,不需要自己做会话保持了 - https://www.apolloconfig.com/#/zh/development/portal-how-to-enable-session-store

@tsiayutai
Copy link
Author

了解~非常感謝您!

@Shelby-Jiao
Copy link

同样请教一下在配置portal数据库阶段就已经可以支持同env可以配置逗号隔开的多个metaserver了吗,代码中似乎实现了但是文档中没有明确说明

@nobodyiam
Copy link
Member

可以的,在 配置apollo-portal的meta service信息 中有说明。

image

@stale
Copy link

stale bot commented Feb 14, 2023

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 14, 2023
@stale
Copy link

stale bot commented Feb 21, 2023

This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.

@stale stale bot closed this as completed Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants