Skip to main content

Operations

Deployment​

A business application packages the PCS with its templates, plugins and environment configuration. Several replicas can run together, including during a rolling deployment; they share the database, Kafka consumer group and snapshot store.

Kafka partition assignment serializes internal updates per process instance. See Template migration for instances that span template changes and Configuration for the required infrastructure settings.

Scaling​

The PCS has to be multi-instance capable: operating the application is the responsibility of the teams, and it is not realistic to require that the service is never scaled and never deployed with zero downtime (which requires at least temporary multi-instance operation).

The PCS scales with the number of instances and the number of partitions of the consumed topics:

  • The partition count of the business application topics controls the parallelism while consuming incoming messages. Scaling is usually not necessary here, as those messages are consumed very quickly.
  • The partition count of the process-outdated-internal topic controls the parallelism of the internal processing (state updates). Increasing it is recommended for instances under very high load.

The configured consumer capacity is number of instances × listener concurrency. For a single topic and consumer group, active consumption is also limited by the topic's partition count. Consumers beyond that count remain idle.

Set the listener concurrency in Configuration.

Housekeeping​

Old data is deleted automatically from the database by a scheduled job, see Configuration.

Maintenance jobs​

PCS provides maintenance jobs for relation reevaluation, process-data backfill, and explicit relation republication. The APIs are disabled by default and execute each target as a durable, independently tracked task. See Maintenance jobs for enablement, authorization, request and report formats, processing semantics, and failure handling.

Metrics​

The PCS publishes metrics that allow it to be monitored and analysed in operation.

Counters​

Metric nameDimensionsValue
jeap_pcs_process_created_instances_totalprocess_templateNumber of created processes
jeap_pcs_processes_completed_totalprocess_templateNumber of completed processes
jeap_pcs_messages_received_totalfirst_processingNumber of received messages
jeap_pcs_process_updates_processed_totalNumber of processed process updates
jeap_pcs_failed_process_updates_totalNumber of failed process updates
jeap_pcs_snapshot_created_totalprocess_templateNumber of created process snapshots

Timers​

Timers define several timelines per metric name, with the following suffixes. In addition, a histogram bucket is created for 50%, 80% and 99% of all measurements (quantile tag).

SuffixMeaning
_secondsMeasured duration
_seconds_countNumber of measured durations
_seconds_sumTotal of the measured durations
_seconds_maxMaximum measured duration
Metric nameMeasures
jeap_pcs_process_messageReceiving a message
jeap_pcs_early_correlate_messageCorrelating a message to an origin process ID, either by correlation provider or by process data
jeap_pcs_late_correlate_messageLate correlation — correlating a message over newly created process data
jeap_pcs_update_process_stateProcessing an outdated event, including the process update processing
jeap_pcs_handle_message_for_process_instanceProcessing a single message as part of the update of a process instance
jeap_pcs_process_updateUpdating the state of a process instance, including task creation
jeap_pcs_handle_pending_messagesFinding and handling pending messages when a new process instance is created
jeap_pcs_update_migrateProcessing an event migrating a process instance because of a changed template
jeap_pcs_migration_triggerTriggering the process instance migration for modified templates
jeap_pcs_housekeeping_cleanupDuration of a housekeeping run
jeap_pcs_create_snapshotCreating a process snapshot
jeap_pcs_produce_process_snapshot_created_eventProducing a ProcessSnapshotCreatedEvent
jeap_pcs_relation_service_new_process_dataDeriving new relations from newly created process data
jeap_pcs_relation_service_notify_listenersNotifying the registered RelationListeners about new relations
jeap_pcs_s3_client_*S3 client operations for snapshots (put_object, get_object, head_bucket, list_objects, and the bucket lifecycle configuration)
jeap_pcs_repository_*Repository and query timers for database access, per entity (processinstance, message, taskinstance, processdata, relation, …)

The exact S3 metric names are jeap_pcs_s3_client_put_object, jeap_pcs_s3_client_get_object, jeap_pcs_s3_client_head_bucket, jeap_pcs_s3_client_list_objects, jeap_pcs_s3_client_get_bucketlifecycleconfiguration and jeap_pcs_s3_client_put_bucketlifecycleconfiguration. The old spelling jeap_pcss_s3_client_put_object was a documentation typo.

Application-specific relation listeners may expose additional metrics. Older Transparenza integrations used jeap_pcs_transparenza_relations_commands_created (relationsCount) and jeap_pcs_transparenza_relations_commands_sent (commandsCount). These are not core PCS metrics; check the listener installed in the instance when migrating dashboards.

In addition, the state of the feature flags is published as the feature_flag gauge.

Error handling​

For business-message failures and their classification, see Error handling. Maintenance tasks use separate delivery and failure semantics.