Skip to content

Nodes ​

The nodes.yml file is a list of nodes that DICOM Capacitor will use to send and receive DICOM data.

Example Configuration ​

yaml
---
- AeTitle: STORE_SCP
  Aliases:
    - PACS
  HostName: 127.0.0.1
  Port: 104
  TransferSyntax:
  NodeRole: Storage
  BatchSize: 0
  MinimumLineSpeed: 0
  ProcessSchedule:
    - 00:00 - 23:59
  ProcessNetworks:
    - 192.168.100.4 / 255.255.255.0

AeTitle ​

  • Type: string
  • Default: DESTINATION

The AE Title that is used when initiating associations with this node. In the example above, clients that wish to send DICOM data to this node should use the Called AE Title STORE_SCP.

Capacitor will respond affirmatively to any C-ECHO and C-Store association intended for this AE Title, as well as this AE title prefixed with config.yml/aeTitlePrefix.

Aliases ​

  • Type: string[]
  • Default: []
  • Optional

A YAML array of aliases that DICOM Capacitor will use to identify the node. In the example above, associations intended for the PACS will be delivered to STORE_SCP instead.

Capacitor will respond affirmatively to any C-ECHO and C-Store association intended for these aliases.

CFindFailureBehavior ​

  • Type: string
  • Default: "" (legacy_success)
  • Optional

For QueryRetrieve and Worklist nodes, controls whether a genuine upstream C-FIND terminal failure is converted to Success for the caller (legacy_success, the default) or forwarded (propagate). See C-FIND Failure Policy.

BatchSize ​

  • Type: number
  • Default: "" (inherits from config.yml)
  • Optional

The number of DICOM images to process in a single batch. Any value other than blank overrides the value set in config.yml/batchSize for only this node.

HostName ​

  • Type: string
  • Default: 127.0.0.1

The IP address or hostname of the node.

Impersonate ​

  • Type: boolean
  • Default: false
  • Optional

When enabled, DICOM Capacitor will assume the AE Title of the original calling client when making outbound requests to this node, instead of using the myAeTitle from config.yml.

This is useful when the destination node needs to know the original source of the data. For example:

  • A PACS that uses the calling AE Title for routing or access control
  • A worklist server that filters results based on the requesting modality
  • Systems that log or track data by the originating AE Title

Example:

yaml
- AeTitle: PACS
  HostName: 192.168.1.100
  Port: 104
  Impersonate: true  # PACS will see the original modality's AE Title

When Impersonate is false (default), all outbound requests use the AE Title defined in config.yml/myAeTitle.

MinimumLineSpeed ​

  • Type: number
  • Default: the larger of config.yml/minimumLineSpeed and 500
  • Optional

The minimum transmission speed, in KB/s, that DICOM Capacitor will use to determine if a storage operation has failed. This value overrides the config.yml/minimumLineSpeed setting for this node. Values below 16 are treated as 16, and a value that is not a number is treated as 2048.

NodeRole ​

  • Type: string
  • Default: Storage

The role of the node.

Accepted values:

  • Storage - The node is a Storage SCP, and Capacitor will relay data to it
  • QueryRetrieve - The node is a Query/Retrieve SCP, and Capacitor will relay queries to it
  • Worklist - The node is a Worklist SCP, and Capacitor will relay queries to it, and cache (and mutate) the results
  • StorageCommitSCP - The node is a Storage Commitment SCP, and Capacitor will relay requests to it
  • StorageCommitSCU - The node is a Storage Commitment SCU, and Capacitor will relay requests to it

Specific roles may require and allow additional configuration in config.yml, nodes.yml, and mutations.yml.

Port ​

  • Type: number
  • Default: 104

The port that the node is listening on.

Priority ​

  • Type: number
  • Default: 0
  • Optional

The DICOM priority level for operations with this node. This affects the priority field in DICOM messages.

Accepted values:

  • 0 - Medium priority (default)
  • 1 - High priority
  • 2 - Low priority

SopClassPriorities ​

  • Type: string[]
  • Default: []
  • Optional

An ordered list of SOP Class UIDs used to prioritize the delivery queue for this storage destination. Earlier entries have higher queue priority. Items with the same resolved priority are normally processed FIFO by creation time. Retry handling can defer refused objects so other queued work can proceed.

Use the special default entry to set where unlisted SOP classes should fall in the order. If default is omitted, unlisted SOP classes receive the lowest priority below every listed SOP class. If SopClassPriorities is omitted entirely, the node keeps normal FIFO delivery.

This setting applies only to NodeRole: Storage.

Use this when queue order matters clinically or operationally. A common example is sending small 2D acquisition images first so they are visible quickly at the destination, while lower-priority derived objects, documentation, or bulky secondary captures can wait behind them.

Behavior:

  • Priority is evaluated per queued item for this destination.
  • Higher-priority items can overtake older lower-priority backlog on the next send-batch refresh.
  • Items with the same resolved priority normally remain FIFO, except when refused work is deferred.
  • A batch already in flight is not interrupted.

This is different from other ordering controls:

  • Priority on the node is the DICOM message priority field, not queue scheduling.
  • SopClassPriorities changes backlog scheduling across queued files for one destination.
  • sortings.yml and Lua sorting are still the tools for ordering files within the same priority class or within a study/batch.

Example:

yaml
- AeTitle: PACS
  HostName: 192.168.1.100
  Port: 104
  NodeRole: Storage
  SopClassPriorities:
    - 1.2.840.10008.5.1.4.1.1.1      # Computed Radiography Image Storage
    - 1.2.840.10008.5.1.4.1.1.1.1    # Digital X-Ray Image Storage - For Presentation
    - default

Example: urgent 2D before routine backlog

yaml
- AeTitle: REVIEW_PACS
  HostName: 192.168.1.50
  Port: 104
  NodeRole: Storage
  SopClassPriorities:
    - 1.2.840.10008.5.1.4.1.1.1      # CR Image Storage
    - 1.2.840.10008.5.1.4.1.1.2      # CT Image Storage
    - default                        # normal queue position for everything else
    - 1.2.840.10008.5.1.4.1.1.7      # Secondary Capture Image Storage

Example: keep default FIFO, but push reports to the back

yaml
- AeTitle: ARCHIVE
  HostName: 192.168.1.60
  Port: 104
  NodeRole: Storage
  SopClassPriorities:
    - default
    - 1.2.840.10008.5.1.4.1.1.104.1  # Encapsulated PDF Storage

Storage retry behavior ​

Unreleased; not included in DICOM Capacitor 4.9.0.

An unsuccessful network send can pause retries for that destination. Repeated destination failures increase the pause up to the configured maximum. After the circuit opens, one queued object is sent as a C-STORE probe. A fully accepted probe restores normal batching; C-ECHO alone does not.

Objects the destination refuses are deferred while other eligible queued objects are tried, then offered again on a later pass. This can temporarily take precedence over normal priority/FIFO order. A destination refusing all offered work is also subject to retry delays. Unacknowledged objects are retained for retry; normal rejection handling still applies to explicitly rejected objects.

Other destinations and incoming-image preparation continue independently. Node pauses, schedules, network restrictions, and ProcessDelay still determine when delivery is eligible. These network retry rules do not apply to file-backed ExportPath destinations.

Configure the delays in config.yml. Retry state and the next eligible retry time are available in node statistics.

StallThreshold ​

  • Type: number
  • Default: "" (inherits from config.yml)
  • Optional

Per-node override of config.yml/stallThresholdSeconds: the number of seconds of zero socket activity after which an in-flight send to this destination is aborted and retried. Set to 0 to disable stall detection for this node only — note that this also disables the post-upload response watchdog described under CStoreResponseGrace, leaving only the hard storage deadline.

Use this for destinations reached over cellular or other intermittent links, where dead zones of several minutes are normal and an aborted transfer must be re-sent from the beginning:

yaml
- AeTitle: REMOTE_PACS
  HostName: 10.0.0.50
  Port: 104
  StallThreshold: 600  # tolerate up to 10 minutes of silence before aborting

CStoreResponseGrace ​

  • Type: number
  • Default: "" (inherits from config.yml)
  • Optional

Per-node override of config.yml/cstoreResponseGraceSeconds: the number of seconds to wait for this destination's C-STORE response after the request payload has already been fully written to the wire. Until the payload has been fully sent, StallThreshold still governs; this setting only applies to the post-upload response wait.

Use it for a destination that is known to take a long time to ingest large DICOM objects, without weakening stall detection during the upload itself:

yaml
- AeTitle: SLOW_PACS
  HostName: 10.0.0.60
  Port: 104
  StallThreshold: 90            # abort a frozen upload after 90s of silence
  CStoreResponseGrace: 900      # wait far longer for the reply once the payload is sent

The reply window you actually get is bounded by the hard storage deadline, which is measured from the start of the send rather than from the end of the upload. A CStoreResponseGrace larger than the remaining deadline will never be reached — the send is aborted by the deadline first. Size the deadline (storageTimeoutFloorSeconds and this node's MinimumLineSpeed) accordingly if you genuinely need a long reply window.

How the effective value is resolved. The rule is not simply "whichever is larger":

  • If CStoreResponseGrace is set, that value is used exactly as written. It is not raised to meet StallThreshold. Setting CStoreResponseGrace: 10 on a node whose StallThreshold is 600 yields an effective response grace of 10 seconds.
  • If CStoreResponseGrace is not set, the effective grace is the larger of this node's effective StallThreshold and the global cstoreResponseGraceSeconds. StallThreshold acts as a compatibility floor only in this inherited case, so destinations already tuned with a long per-node stall threshold keep at least that much patience.

A negative value is ignored and treated as unset.

One clock per send, not per object. A batch send does not give each C-STORE its own grace. The send attempt uses one aggregate response-phase clock anchored to the most recently sent C-STORE request; sending a later request resets that clock for all outstanding responses. The grace therefore only bites when responses are still outstanding and no new request has been sent for the whole grace period — so a batch that is still pushing requests will not trip it.

StallThreshold: 0 also disables this watchdog

The response-grace check is gated on this node's effective stall threshold being greater than zero. Setting StallThreshold: 0 disables both the upload-stall check and the response-grace check for this destination — even when CStoreResponseGrace is set explicitly — leaving only the hard storage deadline. That is a broader change than "disable stall detection" suggests.

Detection of a dead peer is slower during the response phase

Raising this value increases how long it takes to notice that a destination has died after the payload was sent. The upload phase is unaffected.

Detection happens by the earlier of the remaining hard storage deadline and the configured response grace, observed on the monitor's next sampling cycle (about every 2 seconds). It is not detected categorically after the response grace.

Editing this value directly in nodes.yml requires a service restart to take effect.

ExportPath ​

  • Type: string
  • Default: "" (network destination)
  • Optional
  • Available: after 4.9.0 (unreleased)

File-backed storage works independently of HTTP retrieval. To submit tracked HTTP jobs, enable retrievalEnabled: true in config.yml and restart; it defaults to false. See the Query/Retrieve API for recovery-only behavior and setup.

Optional, Storage nodes only. When set, the node is file-backed: instead of sending C-STORE, prepared instances are written atomically (temporary file, flush, rename) beneath ExportPath as <StudyInstanceUID>/<SeriesInstanceUID>/<SOPInstanceUID>.dcm, then finalized exactly like a successful store (audit export(...), storage receipt, cache cleanup). Anything that can target a storage node can target it: a modality storing to its AE title, add_destination in routings.yml, route:Add in Lua, a prefetch MoveDestination.

yaml
- AeTitle: ARCHIVE_DISK
  HostName: localhost      # placeholder, never contacted
  Port: 104
  NodeRole: Storage
  ExportPath: /mnt/archive
  ProcessDelay: 0

Routing, Lua and mutation rules apply to the node's AE title like any other destination, so what lands on disk is the prepared output, not the raw receipt.

RequireDeliveryScope ​

  • Type: boolean
  • Default: false
  • Optional
  • Available: after 4.9.0 (unreleased)

Applies to both network and file-backed Storage nodes. Tracked instances carry an opaque delivery identity, independent of their output layout. Set RequireDeliveryScope: true on a node dedicated to tracked delivery: unmatched instances are refused at C-STORE (status 0124) and untracked routed or recovered files are rejected before delivery. Retrieval receipts are retained while their cached files remain, so known cancelled leftovers stay blocked on either node type. Leave it false for a node shared with ordinary C-STORE, routing, Lua or prefetch traffic.

For the HTTP retrieval API, scopedOutput: true adds <jobId>/ beneath ExportPath and writes a manifest. Its default, false, retains the normal root layout; network destinations have no folder or manifest. Both remain tracked. A cancelled scope or a tracked item without its tracker cannot start new delivery. In-flight network sends are aborted best-effort; already accepted data cannot be recalled.

HostName/Port are optional for file-backed nodes; they do not make outbound DICOM connections.

ProcessDelay ​

  • Type: number
  • Default: "" (inherits from config.yml)
  • Optional

The number of milliseconds to delay delivery of prepared studies for this specific node. This overrides the global config.yml/processDelay setting.

This is part of the "Adaptive Study Delivery Window" system. See config.yml/processDelay for more details.

Example:

yaml
- AeTitle: PACS
  HostName: 192.168.1.100
  Port: 104
  ProcessDelay: 30000  # Wait 30 seconds before delivery to this node

ProcessNetworks ​

  • Type: string[]
  • Default: []
  • Optional

A YAML array of CIDR ranges DICOM Capacitor will compare against all local network adapters to determine when to process data for this node.

Example:

yaml
ProcessNetworks:
  - 192.168.100.4 / 255.255.255.0  # requires specific subnet using mask
  - 192.168.100.0                  # requires specific subnet address
  - 192.168.100.4                  # requires specific ip address (no mask)

ProcessSchedule ​

  • Type: string[]
  • Default: []
  • Optional

A YAML array of time ranges that DICOM Capacitor will use to determine when to process data for this node.

Example:

yaml
ProcessSchedule:
  - 00:00 - 23:59
  - 13:30 - 17:00

TransferSyntax ​

  • Type: string
  • Default: "" (inherits from incoming image or config.yml)
  • Optional

The transfer syntax that Capacitor will use when sending data to this node. If this value is not provided, Capacitor will use the transfer syntax of the incoming image, or the value defined in config.yml/defaultTransferSyntax if set.

Accepted values are the same as those in config.yml/defaultTransferSyntax.