a-langer / nexus-sso

Single Sign-On patch for Nexus OSS
Eclipse Public License 1.0
67 stars 16 forks source link

Nexus is capped at 20k requests per day #32

Open bilalbokharee opened 3 weeks ago

bilalbokharee commented 3 weeks ago

I am using nexus-sso patch 3.68 right now (and planning an upgrade to 3.70). The issue is that the patched Nexus is capped at 20k requests per day whereas my usage is around 400k requests per day. What are my options? Is this configurable in some settings that I am missing, or if this is strictly a pro feature, do you plan to add this functionality to your future patch releases? Thanks.

a-langer commented 3 weeks ago

patched Nexus is capped at 20k requests

Where did you get this information? No limits were applied on my part.

bilalbokharee commented 3 weeks ago

Sorry for the confusion, I do not mean to imply that the limits were added by you. I mean in general that Nexus daily limits for embedded databases (OrientDB and H2), according to the docs, are 20k per day. My usage is around 400k due to a large number of users and tools consuming from nexus in CI and locally. How do I make sure its consumers don't see Limit exceeded errors. Can this functionality be introduced, if not available out of the box, as a part of this patch?

bilalbokharee commented 3 weeks ago

Also, docs mention that the setup can be improved with an external Postgresql db. Is there support present to connect this patch with an external Postgresql db? If not, do you have future plans to include that in this patch? Thanks.

a-langer commented 3 weeks ago

As far as I understand this is just a recommendation to switch to the PRO version, there are no intentional restrictions on the number of queries. You can use the built-in DBMS (OrientDB) as long as you are satisfied with the performance.

As of version 3.71.0 OrientDB is no longer supported, so I will be working on adapting the plugin for H2 in the near future, see https://github.com/a-langer/nexus-sso/issues/31.

bilalbokharee commented 2 weeks ago

Thank you for the clarification. However, this warning seems to be important. With the kind of workload I have like mentioned in the request, it makes nexus refuse requests with Limit exceeded errors. Is Postgresql backend supported, or will be supported soon in this patch as an option?

bilalbokharee commented 2 weeks ago

@a-langer Please feel free to close this out after responding to my question above. Thanks

a-langer commented 2 weeks ago

it makes nexus refuse requests with Limit exceeded errors

Can you attach a log with the stack that causes this error?

The possibility of implementing Postgresql can only be discussed after migration to H2.