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

Compression support on NiFi api requests #273

Closed
rsaggino opened this issue May 13, 2021 · 0 comments · Fixed by #277
Closed

Compression support on NiFi api requests #273

rsaggino opened this issue May 13, 2021 · 0 comments · Fixed by #277

Comments

@rsaggino
Copy link
Contributor

rsaggino commented May 13, 2021

  • Nipyapi version: 0.14
  • NiFi version: 1.11.4
  • Python version: 3.8
  • Operating System: RHEL7

Description

The generated swagger client for NiFi makes uncompressed requests, this is unbearable on larger clusters.

What I Did

As a workaround I manually added support for gzip in the api_client.py and tested the solution.
Listing the controllers previously required 5 minutes, after the patch just 20 seconds.

If there is no long term solution on the swagger/openapi side, should we consider manually patching it?

Thanks,
Raffaele

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant