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

[suggestion] Make query pagination usable in case of proxy/balancer #4119

Closed
Mingela opened this issue Dec 7, 2023 · 4 comments
Closed

[suggestion] Make query pagination usable in case of proxy/balancer #4119

Mingela opened this issue Dec 7, 2023 · 4 comments
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST

Comments

@Mingela
Copy link
Contributor

Mingela commented Dec 7, 2023

Feature request

Enterprise customers may hide Iroha peers behind a load balancer (proxy). Currently this makes the pagination hardly usable since an original query gets continued on other peer (which does not have the query result state in its cache) making such a request unsatisfiable.

This could be considered from either core or Iroha infrastructure perspective. In the latter case, an exhaustive proxy configuration guide would be expected (on how to introduce kind of sticky sessions for that on a proxy side).

Motivation

Query pagination usability in case of proxy/balancer

Who can help?

No response

@Mingela Mingela added Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST labels Dec 7, 2023
@mversic
Copy link
Contributor

mversic commented Dec 7, 2023

one possibility is to configure nginx to map the same client ip to the same node

@mversic
Copy link
Contributor

mversic commented Dec 7, 2023

consider implementing client sticky session to persist connection to the node. A client should be assigned some session ID

@baotn166
Copy link

  • There are many problems with sticky session to persist connection to the node like worker node restart, the iroha container restart itself, autoscaling, rollout application changes, etc. Users will be impacted in all of these cases.
  • Can we consider to use external cache, or the database for the session state. If the session state is a file, so we can use shared file system like EFS, NFS.
    what do you think about it ? @mversic

@Mingela
Copy link
Contributor Author

Mingela commented Dec 19, 2023

Closing in favor of hyperledger-iroha/iroha-2-docs#454

@Mingela Mingela closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

No branches or pull requests

3 participants