caikit.runtime.server_base
Base class with common functionality across all caikit servers
Attributes
Classes
Simple wrapper for all servers to share a single thread pool |
|
Helper class that provides a standard way to create an ABC using |
Module Contents
- caikit.runtime.server_base.error
- class caikit.runtime.server_base.ServerThreadPool[source]
Simple wrapper for all servers to share a single thread pool
- pool
- class caikit.runtime.server_base.RuntimeServerBase(base_port: int, tls_config_override: aconfig.Config | None)[source]
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- __doc__ = 'Base class with common functionality across all caikit servers'
- _metrics_server_started = False
- config
- port
- tls_config
- enable_inference
- enable_training
- enable_inference_jobs
- inference_service: caikit.runtime.service_factory.ServicePackage | None
- inference_job_service: caikit.runtime.service_factory.ServicePackage | None
- training_service
- runtime_info_service: caikit.runtime.service_factory.ServicePackage | None
- thread_pool: concurrent.futures.ThreadPoolExecutor
- interrupter: caikit.runtime.work_management.abortable_context.ThreadInterrupter | None
- classmethod _start_metrics_server() None[source]
Start a single instance of the metrics server based on configuration