![]() |
App Engine Python SDK
v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
|
Public Member Functions | |
def | __init__ |
def | start |
def | quit |
def | instances |
def | num_outstanding_instance_requests |
def | __call__ |
![]() | |
def | __init__ |
def | name |
def | ready |
def | balanced_port |
def | host |
def | balanced_address |
def | max_instance_concurrent_requests |
def | module_configuration |
def | supports_interactive_commands |
def | set_num_instances |
def | get_num_instances |
def | suspend |
def | resume |
def | get_instance_address |
def | get_instance_port |
def | get_instance |
def | supports_individually_addressable_instances |
def | create_interactive_command_module |
def | build_request_environ |
Static Public Member Functions | |
def | generate_instance_id |
![]() | |
def | generate_request_log_id |
def | generate_request_id_hash |
A pool of instances that is autoscaled based on traffic.
def google.appengine.tools.devappserver2.module.AutoScalingModule.__init__ | ( | self, | |
module_configuration, | |||
host, | |||
balanced_port, | |||
api_host, | |||
api_port, | |||
auth_domain, | |||
runtime_stderr_loglevel, | |||
php_config, | |||
python_config, | |||
cloud_sql_config, | |||
unused_vm_config, | |||
default_version_port, | |||
port_registry, | |||
request_data, | |||
dispatcher, | |||
max_instances, | |||
use_mtime_file_watcher, | |||
automatic_restarts, | |||
allow_skipped_files, | |||
threadsafe_override | |||
) |
Initializer for AutoScalingModule. Args: module_configuration: An application_configuration.ModuleConfiguration instance storing the configuration data for a module. host: A string containing the host that any HTTP servers should bind to e.g. "localhost". balanced_port: An int specifying the port where the balanced module for the pool should listen. api_host: The host that APIServer listens for RPC requests on. api_port: The port that APIServer listens for RPC requests on. auth_domain: A string containing the auth domain to set in the environment variables. runtime_stderr_loglevel: An int reprenting the minimum logging level at which runtime log messages should be written to stderr. See devappserver2.py for possible values. php_config: A runtime_config_pb2.PhpConfig instances containing PHP runtime-specific configuration. If None then defaults are used. python_config: A runtime_config_pb2.PythonConfig instance containing Python runtime-specific configuration. If None then defaults are used. cloud_sql_config: A runtime_config_pb2.CloudSQL instance containing the required configuration for local Google Cloud SQL development. If None then Cloud SQL will not be available. unused_vm_config: A runtime_config_pb2.VMConfig instance containing VM runtime-specific configuration. Ignored by AutoScalingModule as autoscaling is not yet supported by VM runtimes. default_version_port: An int containing the port of the default version. port_registry: A dispatcher.PortRegistry used to provide the Dispatcher with a mapping of port to Module and Instance. request_data: A wsgi_request_info.WSGIRequestInfo that will be provided with request information for use by API stubs. dispatcher: A Dispatcher instance that can be used to make HTTP requests. max_instances: The maximum number of instances to create for this module. If None then there is no limit on the number of created instances. use_mtime_file_watcher: A bool containing whether to use mtime polling to monitor file changes even if other options are available on the current platform. automatic_restarts: If True then instances will be restarted when a file or configuration change that effects them is detected. allow_skipped_files: If True then all files in the application's directory are readable, even if they appear in a static handler or "skip_files" directive. threadsafe_override: If not None, ignore the YAML file value of threadsafe and use this value instead.
def google.appengine.tools.devappserver2.module.AutoScalingModule.instances | ( | self | ) |
A set of all the instances currently in the Module.
def google.appengine.tools.devappserver2.module.AutoScalingModule.num_outstanding_instance_requests | ( | self | ) |
The number of requests that instances are currently handling.
def google.appengine.tools.devappserver2.module.AutoScalingModule.quit | ( | self | ) |
Stops the Module.
def google.appengine.tools.devappserver2.module.AutoScalingModule.start | ( | self | ) |
Start background management of the Module.