google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Discrepancy in max_instance_request_concurrency between Codebase and Public Documentation

Open jialuoo opened this issue 3 months ago • 0 comments

Determine this is the right repository

  • [x] I determined this is the correct repository in which to report this bug.

Summary of the issue

There is a conflict regarding the default value of max_instance_request_concurrency: it is set to 1 in the code, but published as 80 in the documentation.

See: https://github.com/googleapis/google-cloud-python/blob/ffdd714de0ebccb385c54f4f0156e01d769d490a/packages/google-cloud-functions/google/cloud/functions_v2/types/functions.py#L755

        max_instance_request_concurrency (int):
            Sets the maximum number of concurrent
            requests that each instance can receive.
            Defaults to 1.

And: https://cloud.google.com/run/docs/about-concurrency

By default each Cloud Run instance can receive up to 80 requests at the same time; you can increase this to a maximum of 1000.

API client name and version

No response

Reproduction steps: code

file: main.py

   def reproduce():
    # complete code here

Reproduction steps: supporting files

file: mydata.csv

alpha,1,3
beta,2,5

Reproduction steps: actual results

file: output.txtmydata.csv

Calculated: foo

Reproduction steps: expected results

file: output.txtmydata.csv

Calculated: bar

OS & version + platform

No response

Python environment

No response

Python dependencies

No response

Additional context

No response

jialuoo avatar Oct 14 '25 23:10 jialuoo