You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/01/06 15:46:58 UTC
[GitHub] [incubator-doris] hf200012 opened a new pull request #7654: Multiple FE WEB UI login issues
hf200012 opened a new pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654
Multiple FE WEB UI login issues
## Proposed changes
Close related #issue (replace it with issue number if it exists).
Describe the overview of changes, and introduce why we need it.
## Types of changes
What types of changes does your code introduce to Doris?
_Put an `x` in the boxes that apply_
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation Update (if none of the other choices apply)
- [ ] Code refactor (Modify the code structure, format the code, etc...)
- [ ] Optimization. Including functional usability improvements and performance improvements.
- [ ] Dependency. Such as changes related to third-party components.
- [ ] Other.
## Checklist
_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
- [ ] I have created an issue on (Fix #ISSUE) and described the bug/feature there in detail
- [ ] Compiling and unit tests pass locally with my changes
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] If these changes need document changes, I have updated the document
- [ ] Any dependent changes have been merged
## Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] hf200012 commented on a change in pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
hf200012 commented on a change in pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#discussion_r780795988
##########
File path: docs/zh-CN/faq/faq.md
##########
@@ -341,3 +341,76 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
这是 bdbje 的一个 bug,尚未解决。遇到这种情况,只能通过 [元数据运维手册](../administrator-guide/operation/metadata-operation.md) 中的 故障恢复 进行操作来恢复元数据了。
+### Q24. 多个FE,在使用Nginx实现web UI负载均衡的时候,登录不进去的情况
Review comment:
Resolved
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] hf200012 commented on a change in pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
hf200012 commented on a change in pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#discussion_r780796258
##########
File path: docs/zh-CN/faq/faq.md
##########
@@ -341,3 +341,76 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
这是 bdbje 的一个 bug,尚未解决。遇到这种情况,只能通过 [元数据运维手册](../administrator-guide/operation/metadata-operation.md) 中的 故障恢复 进行操作来恢复元数据了。
+### Q24. 多个FE,在使用Nginx实现web UI负载均衡的时候,登录不进去的情况
Review comment:
Resolved
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] jackwener commented on a change in pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
jackwener commented on a change in pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#discussion_r780679369
##########
File path: docs/zh-CN/faq/faq.md
##########
@@ -341,3 +341,76 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
这是 bdbje 的一个 bug,尚未解决。遇到这种情况,只能通过 [元数据运维手册](../administrator-guide/operation/metadata-operation.md) 中的 故障恢复 进行操作来恢复元数据了。
+### Q24. 多个FE,在使用Nginx实现web UI负载均衡的时候,登录不进去的情况
Review comment:
```suggestion
### Q24. 多个FE,在使用Nginx实现web UI负载均衡时,无法登录
```
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] hf200012 commented on a change in pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
hf200012 commented on a change in pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#discussion_r780795959
##########
File path: docs/en/faq/faq.md
##########
@@ -340,3 +340,77 @@ To ensure the unique data order between different replicas, refer to the [Seque
Sometimes when restarting the Fe, the above error will occur (usually only in the case of multiple followers), and the difference between the two values in the error is 2. As a result, the Fe startup fails.
This is a bug in bdbje that has not been resolved. In this case, metadata can only be recovered through fault recovery in [metadata operation and maintenance manual](../administrator-guide/operation/metadata-operation.md).
+
+### Q24. Multiple FEs, when using Nginx to implement web UI load balancing, the login cannot be entered
+
+Doris can deploy multiple FEs. When accessing the Web UI, if you use Nginx for load balancing, you will be prompted to log in again because of Session problems. This problem is actually a session sharing problem. Nginx provides centralized session sharing. The solution, here we use the ip_hash technology in nginx, ip_hash can direct the request of a certain ip to the same backend, so that a certain client and a certain backend under this ip can establish a stable The session, ip_hash is defined in the upstream configuration:
+
+```
+upstream doris.com {
+ server 172.22.197.238:8030 weight=3;
+ server 172.22.197.239:8030 weight=4;
+ server 172.22.197.240:8030 weight=4;
+ ip_hash;
Review comment:
Resolved
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] github-actions[bot] commented on pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#issuecomment-1012276376
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] jackwener commented on a change in pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
jackwener commented on a change in pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#discussion_r780679573
##########
File path: docs/zh-CN/faq/faq.md
##########
@@ -341,3 +341,76 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
这是 bdbje 的一个 bug,尚未解决。遇到这种情况,只能通过 [元数据运维手册](../administrator-guide/operation/metadata-operation.md) 中的 故障恢复 进行操作来恢复元数据了。
+### Q24. 多个FE,在使用Nginx实现web UI负载均衡的时候,登录不进去的情况
+
+Doris 可以部署多个FE,在访问Web UI的时候,如果使用Nginx进行负载均衡,因为Session问题会出现不停的提示要重新登录,这个问题其实是Session共享的问题,Nginx提供了集中Session共享的解决方案,这里我们使用的是nginx中的ip_hash技术,ip_hash能够将某个ip的请求定向到同一台后端,这样一来这个ip下的某个客户端和某个后端就能建立起稳固的session,ip_hash是在upstream配置中定义的:
+
+```
+upstream doris.com {
+ server 172.22.197.238:8030 weight=3;
+ server 172.22.197.239:8030 weight=4;
+ server 172.22.197.240:8030 weight=4;
+ ip_hash;
Review comment:
```suggestion
server 172.22.197.238:8030 weight=3;
server 172.22.197.239:8030 weight=4;
server 172.22.197.240:8030 weight=4;
ip_hash;
```
##########
File path: docs/en/faq/faq.md
##########
@@ -340,3 +340,77 @@ To ensure the unique data order between different replicas, refer to the [Seque
Sometimes when restarting the Fe, the above error will occur (usually only in the case of multiple followers), and the difference between the two values in the error is 2. As a result, the Fe startup fails.
This is a bug in bdbje that has not been resolved. In this case, metadata can only be recovered through fault recovery in [metadata operation and maintenance manual](../administrator-guide/operation/metadata-operation.md).
+
+### Q24. Multiple FEs, when using Nginx to implement web UI load balancing, the login cannot be entered
+
+Doris can deploy multiple FEs. When accessing the Web UI, if you use Nginx for load balancing, you will be prompted to log in again because of Session problems. This problem is actually a session sharing problem. Nginx provides centralized session sharing. The solution, here we use the ip_hash technology in nginx, ip_hash can direct the request of a certain ip to the same backend, so that a certain client and a certain backend under this ip can establish a stable The session, ip_hash is defined in the upstream configuration:
+
+```
+upstream doris.com {
+ server 172.22.197.238:8030 weight=3;
+ server 172.22.197.239:8030 weight=4;
+ server 172.22.197.240:8030 weight=4;
+ ip_hash;
Review comment:
```suggestion
server 172.22.197.238:8030 weight=3;
server 172.22.197.239:8030 weight=4;
server 172.22.197.240:8030 weight=4;
ip_hash;
```
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] morningman merged pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
morningman merged pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] jackwener commented on pull request #7654: Multiple FE WEB UI login issues
Posted by GitBox <gi...@apache.org>.
jackwener commented on pull request #7654:
URL: https://github.com/apache/incubator-doris/pull/7654#issuecomment-1008513111
LGTM
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org