應用程式集區為網頁伺服器上的進程提供隔離機制。 有許多不同的設定可用來微調背景工作進程透過 IIS 提供要求的行為。 應用程式集區 API 可讓取用者建立、讀取、刪除或更新其應用程式集區。
GET/api/webserver/application-pools/{id}
{
"name": "DefaultAppPool",
"id": "{id}",
"status": "started",
"auto_start": "true",
"pipeline_mode": "integrated",
"managed_runtime_version": "v4.0",
"enable_32bit_win64": "false",
"queue_length": "1000",
"cpu": {
"limit": "0",
"limit_interval": "5",
"action": "NoAction",
"processor_affinity_enabled": "false",
"processor_affinity_mask32": "0xFFFFFFFF",
"processor_affinity_mask64": "0xFFFFFFFF"
},
"process_model": {
"idle_timeout": "20",
"max_processes": "1",
"pinging_enabled": "true",
"ping_interval": "30",
"ping_response_time": "90",
"shutdown_time_limit": "90",
"startup_time_limit": "90",
"idle_timeout_action": "Terminate"
},
"identity": {
"identity_type": "ApplicationPoolIdentity",
"username": "",
"load_user_profile": "true"
},
"recycling": {
"disable_overlapped_recycle": "false",
"disable_recycle_on_config_change": "false",
"log_events": {
"time": "true",
"requests": "true",
"schedule": "true",
"memory": "true",
"isapi_unhealthy": "true",
"on_demand": "true",
"config_change": "true",
"private_memory": "true"
},
"periodic_restart": {
"time_interval": "1740",
"private_memory": "0",
"request_limit": "0",
"virtual_memory": "0",
"schedule": []
}
},
"rapid_fail_protection": {
"enabled": "true",
"load_balancer_capabilities": "HttpLevel",
"interval": "5",
"max_crashes": "5",
"auto_shutdown_exe": "",
"auto_shutdown_params": ""
},
"process_orphaning": {
"enabled": "false",
"orphan_action_exe": "",
"orphan_action_params": ""
},
"_links": {
"webapps": {
"href": "/api/webserver/webapps?application_pool.id={id}"
},
"websites": {
"href": "/api/webserver/websites?application_pool.id={id}"
},
"worker_processes": {
"href": "/api/webserver/worker-processes?application_pool.id={id}"
}
}
}
建立應用程式集區
建立應用程式集區所需的唯一資訊是名稱。
建立應用程式集區。 POST/api/application-pools
{
"name": "Demonstration App Pool"
}