fantapsody opened a new pull request #9584:
URL: https://github.com/apache/pulsar/pull/9584


   ### Motivation
   
   The pulsar cluster may not allow users to request an arbitrary amount of 
resources for functions for various reasons, like quotas, limited physical 
resources, etc. And it's better to check the function creation requests and 
explicitly reject those of which the resources requested are greater than 
allowed.
   
   ### Modifications
   
   Add a worker config to set the maximum amount of resource a function must 
request
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   This change added tests and can be verified as follows:
   
     - Added unit tests to verify the configurations and checks.
   
   ### Does this pull request potentially affect one of the following parts:
     - Dependencies (does it add or upgrade a dependency): (yes / no)
     - The public API: (yes / no)
     - The schema: (yes / no / don't know)
     - The default values of configurations: (yes / no)
     - The wire protocol: (yes / no)
     - The rest endpoints: (yes / no)
     - The admin cli options: (yes / no)
     - Anything that affects deployment: (yes / no / don't know)
   
   ### Documentation
   
   A sample configuration has been added to `conf/functions_worker.yml`.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to