Replace the unbounded fixed thread pool with a bounded worker queue,
sized by floci.services.cloudcontrol.create-worker-threads (default 4)
and create-queue-capacity (default 64). These are Floci limits, not AWS
quotas. A new CreateResource past them is refused with
ThrottlingException, HTTP 400, which is the status the Cloud Control
API reference gives it on CreateResource and in Common Errors. The
pending token is dropped so it is not left unfulfillable.
Startup replay of persisted CREATE requests does not apply that bound.
When the worker queue is full, an already-accepted request is parked
and handed to the executor by a daemon drainer once a slot frees,
instead of blocking the request that constructs Cloud Control until a
provisioning task finishes. Shutdown interrupts the drainer; parked
requests stay persisted and replay on the next start.
A create that fails while Cloud Control is shutting down is no longer
recorded as FAILED. Shutdown interrupts in-flight provisioning, so the
failure is the shutdown's: the request stays IN_PROGRESS and replays
on the next start, like the queued and parked ones. Worker threads are
now numbered.
Narrow the persisted-state parse catch so a submission failure is no
longer misreported as invalid JSON.
Document the limit and both settings.
Unsupported TypeName values now fail with UnsupportedActionException
(HTTP 400) instead of an empty ResourceDescriptions, which was
indistinguishable from a genuinely empty result. Documents the
supported type list and the new error behavior.
Closes#2043
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* docs(services): add SWF, Cloud Control API, and EMR Serverless to the service matrix
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
* feat(docs): fail CI when a registered service has no service-matrix row
check_service_matrix.py compares descriptor() registrations in
ResolvedServiceCatalog.java against the matrix, via an alias/deferred
registry in tools/docs/service_matrix.yaml. Deferred entries require a
`by:` expiry date so the exemption can't become permanent (see #2436).
Wired into `make docs-check`.
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
---------
Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>