Description: Configure the number of workers which enables you to control the number of workers for new content and existing content.
Since: 3.6
Notes: Self-Hosted only
Security: Requires an admin user
Usage: PUT /xray/api/v1/configuration/workersCount
Note
You must restart Xray to apply the changes.
Sample Usage:
{
"index": {
"new_content": 8,
"existing_content": 4
},
"persist": {
"new_content": 8,
"existing_content": 4
},
"analysis": {
"new_content": 8,
"existing_content": 4
},
"policy_enforcer": {
"new_content": 8,
"existing_content": 8
},
"sbom": {
"new_content": 0,
"existing_content": 0
},
"usercatalog": {
"new_content": 0,
"existing_content": 0
},
"sbomimpactanalysis": {
"new_content": 0,
"existing_content": 0
},
"migrationsbom": {
"new_content": 0,
"existing_content": 0
},
"impact_analysis": {
"new_content": 8
},
"notification": {
"new_content": 8
},
"panoramic": {
"new_content": 0
}
}Response Codes:
200: Success
400: Invalid input: error
400: Failed to parse workers count
500: Failed to update workers count
415: Unsupported media type
403: Forbidden
401: Unauthorized