The module to set the number of instances for, if None the current
module will be used.
version
The version set the number of instances for, if None the current
version will be used.
Raises
InvalidVersionError if the given module version isn't valid,
TransientError if there is an issue persisting the change.
TypeError if the given instances type is invalid.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThis function \u003ccode\u003egoogle.appengine.api.modules.set_num_instances\u003c/code\u003e sets the number of instances for a specified module and version.\u003c/p\u003e\n"],["\u003cp\u003eThe number of instances can be set for a specific \u003ccode\u003emodule\u003c/code\u003e and \u003ccode\u003eversion\u003c/code\u003e, or the current module and version if none are specified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003einstances\u003c/code\u003e parameter determines the target number of instances to use.\u003c/p\u003e\n"],["\u003cp\u003eThe function can raise \u003ccode\u003eInvalidVersionError\u003c/code\u003e, \u003ccode\u003eTransientError\u003c/code\u003e, or \u003ccode\u003eTypeError\u003c/code\u003e depending on the inputs and outcome of the function call.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.modules.set_num_instances\n\n\u003cbr /\u003e\n\nSets the number of instances on the module and version.\n\n#### View aliases\n\n\n**Main aliases**\n\n\\`google.appengine.api.modules.modules.set_num_instances\\`\n\n\u003cbr /\u003e\n\n google.appengine.api.modules.set_num_instances(\n instances, module=None, version=None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]