附录 G. 代理属性
以下是 AMQ Broker 属性列表,它可以直接应用到内部 java 配置 bean,而不使用 XML 配置。
criticalAnalyzerCheckPeriod
Type: long
Default: 0
XML name: critical-analyzer-check-period
Description: The period 默认为 critical-analyzer-timeout,并在运行时计算。
pageMaxConcurrentIO
type: int
Default: 5
XML name: page-max-concurrent-io
Description: 在分页期间允许的最大并发读取数。
messageCounterSamplePeriod
type: long
Default: 10000
XML name: message-counter-sample-period
Description: 用于消息计数器的示例周期(单位为 ms)。
networkCheckNIC
Type: String
Default:
XML name: network-check-nic
Description: 用于验证地址的网络接口卡名称。
globalMaxSize
Type: long
Default: -1
XML name: global-max-size
Description: Size (in bytes) before all addresses will enter into their Full Policy configured upon messages being produced.支持字节表示法,如"K"、"Mb"、"MiB"、"GB"等。
journalFileSize
type: int
Default: 10485760
XML name: journal-file-size
Description: 每个日志文件的大小(以字节为单位)。支持字节表示法,例如:"K", "Mb", "MiB", "GB"。
configurationFileRefreshPeriod
27 MinLength: long
Default: 5000
XML name: configuration-file-refresh-period
Description:
diskScanPeriod
Type: int
Default: 5000
XML name: disk-scan-period
Description: 频率(毫秒)来扫描磁盘以了解完整磁盘。
journalRetentionDirectory
Type: String
Default:
XML name: journal-retention-directory
Description: 用于存储 journal-retention 消息和保留配置的目录。
networkCheckPeriod
Type: long
Default: 10000
XML name: network-check-period
Description: the frequency, in milliseconds, to check the network is up.
journalBufferSize_AIO
type: int
Default: 501760
XML name: journal-buffer-size
Description: 日志内部缓冲区的大小(以字节为单位)。支持字节表示法,例如 "K", "Mb", "MiB", "GB"。
networkCheckURLList
Type: string
Default:
XML name: network-check-URL-list
Description: 用来验证代理是否应保持在线的 URL 列表。
networkCheckTimeout
Type: int
Default: 1000
XML name: network-check-timeout
Description:
pageSyncTimeout
type: int
Default:
XML name: page-sync-timeout
Description: timeout, in nanoseconds, 用于同步页面。确切的默认值取决于日志是 ASYNCIO 还是 NIO。
journalPoolFiles
Type: int
Default: -1
XML name: journal-pool-files
Description: The number of journal files to pre-create.
criticalAnalyzer
Type: boolean
Default: true
XML name: critical-analyzer
Description: Should analyze response time on critical paths, decide for broker log, shutdown 或 halt。
readWholePage
type: boolean
Default: false
XML name: read-whole-page
Description: 指定在页面缓存被驱除后是否读取整个页面。
maxDiskUsage
type: int
Default: 90
XML name: max-disk-usage
Description: 系统块或失败的客户端前磁盘用量最大百分比。
globalMaxMessages
Type: long
Default: -1
XML name: global-max-messages
Description: Number of messages before all addresses will enter into their address full policy configured.它与 global-max-size 结合使用,当达到其中任一限制时,它就会执行配置的地址完全策略。
internalNamingPrefix
Type: string
Default:
XML name: internal-naming-prefix
Description: Artemis 使用内部队列和地址来实施某些行为。这些队列和地址默认带有 "$.activemq.internal" 前缀,以避免使用用户名命名冲突。这可以通过将此值设置为有效的 Artemis 地址来覆盖。
journalFileOpenTimeout
Type: int
Default: 5
XML name: journal-file-open-timeout
Description: 在打开新 Journal 文件前等待的时间(以秒为单位)。
journalCompactPercentage
Type: int
Default: 30
XML name: journal-compact-percentage
Description: 要考虑压缩日志的实时数据的百分比。
createBindingsDir
type: boolean
Default: true
XML name: create-bindings-dir
Description: true
的值会导致服务器在启动时创建绑定目录。
suppressSessionNotifications
Type: boolean
Default: false
XML name: suppress-session-notifications
Description: Whether or not suppress SESSION_CREATED 和 SESSION_CLOSED 通知。设置为 true
以减少通知开销。但是,需要为 MQTT 客户端在集群中强制实施唯一的客户端 ID 利用率。
journalBufferTimeout_AIO
type: int
Default:
XML name: journal-buffer-timeout
Description: the timeout,in nanoseconds, 用于清除日志上的内部缓冲区。确切的默认值取决于日志是 ASYNCIO 还是 NIO。
journalType
Type: JournalType
Default: ASYNCIO
XML name: journal-type
Description: 要使用的日志类型。
名称
Type: String
Default:
XML name: name
Description: Node name.如果设置,它将在拓扑通知中使用。
networkCheckPingCommand
Type: String
Default:
XML name: network-check-ping-command
Description: The ping command used to ping IPV4 addresses.
temporaryQueueNamespace
Type: string
Default:
XML name: temporary-queue-namespace
Description: 用于查找临时队列的地址设置的命名空间。
pagingDirectory
Type: String
Default: data/paging
XML name: Page-directory
Description: 存储页面消息的目录。
journalDirectory
Type: String
Default: data/journal
XML name: journal-directory
Description: 存储日志文件的目录。
journalBufferSize_NIO
type: int
Default: 501760
XML name: journal-buffer-size
Description: 日志内部缓冲区的大小(以字节为单位)。支持字节表示法,例如:"K", "Mb", "MiB", "GB"。
journalDeviceBlockSize
Type: Integer
Default:
XML name: journal-device-block-size
Description: 大小为,以字节为单位,供设备使用。这通常转换为 fstat/st_blksize,这是绕过 st_blksize 返回的值的方法。
nodeManagerLockDirectory
Type: String
Default:
XML name: node-manager-lock-directory
Description: 存储节点管理器锁定文件的目录。
messageCounterMaxDayHistory
Description: int
Default: 10
XML name: message-counter-max-day-history
Description: 用于保留消息计数器历史记录的天数。
largeMessagesDirectory
Type: String
Default: data/largemessages
XML name: large-messages-directory
Description: 要存储大型消息的目录。
networkCheckPing6Command
Type: String
Default:
XML name: network-check-ping6-command
Description: The ping command used to ping IPV6 addresses.
memoryWarningThreshold
Type: int
Default: 25
XML name: memory-warning-threshold
Description: Percentage of available memory that a warning is generated.
mqttSessionScanInterval
Type: long
Default: 5000
XML name: mqtt-session-scan-interval
Description: 频率,以毫秒为单位扫描过期的 MQTT 会话。
journalMaxAtticFiles
type: int
Default:
XML name: journal-max-attic-files
Description:
journalSyncTransactional
Type: boolean
Default: true
XML name: journal-sync-transactional
Description: 如果设为 true
,请等待事务数据同步到日志,然后再返回到客户端。
logJournalWriteRate
type: boolean
Default: false
XML name: log-journal-write-rate
Description: 指定与日志 write-rate 相关的消息。
journalMaxIO_AIO
type: int
Default:
XML name: journal-max-io
Description: 最多可在 AIO 队列中的写入请求数。AIO 的默认为 500
,NIO 为 1
。
messageExpiryScanPeriod
Type: long
Default: 30000
XML name: message-expiry-scan-period
Description: frequency, in milliseconds, to scan for expired 信息。
criticalAnalyzerTimeout
type: long
Default: 120000
XML name: critical-analyzer-timeout
Description: 用于分析关键路径上的超时的默认超时。
messageCounterEnabled
type: boolean
Default: false
XML name: message-counter-enabled
Description: true
表示启用了消息计数器。
journalCompactMinFiles
type: int
Default: 10
XML name: journal-compact-min-files
Description: 代理开始紧凑文件前的最小数据文件数量。
createJournalDir
type: boolean
Default: true
XML name: create-journal-dir
Description: true
表示日志目录已创建。
addressQueueScanPeriod
Type: long
Default: 30000
XML name: address-queue-scan-period
Description: 用于扫描需要删除的地址和队列的频率(以毫秒为单位)。
memoryMeasureInterval
Type: long
Default: -1
XML name: memory-measure-interval
Description: The frequency, in milliseconds, to sample JVM memory.值 -1
禁用内存抽样。
journalSyncNonTransactional
Type: boolean
Default: true
XML name: journal-sync-non-transactional
Description: 如果为 true
,请等待非事务数据同步到日志,然后再返回到客户端。
connectionTtlCheckInterval
type: long
Default: 2000
XML name: connection-ttl-check-interval
Description: frequency, in milliseconds, to check connections for ttl violations。
rejectEmptyValidatedUser
Type: boolean
Default: false
XML name: reject-empty-validated-user
Description: 如果为 true
,服务器不允许任何没有经过验证的用户的消息。在 JMS 中,这是 JMSXUserID
。
journalMaxIO_NIO
type: int
Default:
XML name: journal-max-io
Description: 最多可在 AIO 队列中的写入请求数。AIO 的默认为 500
,NIO 为 1
。目前,代理属性只支持使用整数和测量(以字节为单位)。
transactionTimeoutScanPeriod
Type: long
Default: 1000
XML name: transaction-timeout-scan-period
Description: 用于扫描超时事务的频率(以毫秒为单位)。
systemPropertyPrefix
Type: String
Default:
XML name: system-property-prefix
Description: The prefix used to parse system properties for the configuration.
transactionTimeout
type: long
Default: 300000
XML name: transaction-timeout
Description: the duration, in milliseconds, before a transaction after the after the resource manager after the creation time.
journalLockAcquisitionTimeout
Type: long
Default: -1
XML name: journal-lock-acquisition-timeout
Description: The frequency, in milliseconds, to wait to acquire a file lock on the journal.
journalBufferTimeout_NIO
type: int
Default:
XML name: journal-buffer-timeout
Description: the timeout, in nanoseconds, 用于清除日志上的内部缓冲区。确切的默认值取决于日志是 ASYNCIO 还是 NIO。
journalMinFiles
type: int
Default: 2
XML name: journal-min-files
Description: 要预先创建的日志文件数量。
G.1. bridgeConfigurations 复制链接链接已复制到粘贴板!
bridgeConfigurations.<name>.retryIntervalMultiplier
Type: double
Default: 1
XML name: retry-interval-multiplier
Description: 应用于连续重试间隔的倍数。
bridgeConfigurations.<name>.maxRetryInterval
Type: long
Default: 2000
XML name: max-retry-interval
Description: 限制 retry-interval 增长,因为 retry-interval-multiplier。
bridgeConfigurations.<name>.filterString
Type: String
Default:
XML name: filter-string
Description:
bridgeConfigurations.<name>.connectionTTL
type: long
Default: 60000
XML name: connection-ttl
Description: 如果客户端没有收到数据,则保持连接在线的时间。持续时间应大于 ping 周期。
bridgeConfigurations.<name>.confirmationWindowSize
type: int
Default: 1048576
XML name: confirmation-window-size
Description: 网桥发送确认的字节数。支持字节表示法,例如 "K", "Mb", "MiB", "GB"。
bridgeConfigurations.<name>.staticConnectors
type: List
Default:
XML name: static-connectors
Description:
bridgeConfigurations.<name>.reconnectAttemptsOnSameNode
type: int
Default:
XML name: reconnect-attempts-on-same-node
Description:
bridgeConfigurations.<name>.concurrency
type: int
Default: 1
XML name: concurrency
Description: concurrent worker 的数量。更多 worker 可帮助提高高延迟网络上的吞吐量。默认值为 1
。
bridgeConfigurations.<name>.transformerConfiguration
type: TransformerConfiguration
Default:
XML name: transformer-configuration
Description:
bridgeConfigurations.<name>.transformerConfiguration.className
Type: String
Default:
XML name: class-name
Description:
bridgeConfigurations.<name>.transformerConfiguration.properties
type: Map
Default:
XML name: property
Description: A KEY/VALUE 对在转换器上设置,如 properties.MY_PROPERTY=MY_VALUE
bridgeConfigurations.<name>.password
Type: String
Default:
XML name: password
Description: if unspecified, cluster-password.
bridgeConfigurations.<name>.queueName
Type: String
Default:
XML name: queue-name
Description: 此网桥使用的队列的名称。
bridgeConfigurations.<name>.forwardingAddress
Type: String
Default:
XML name: forward-address
Description: Address to forward to。如果省略,则使用原始地址。
bridgeConfigurations.<name>.routingType
Type: ComponentConfigurationRoutingType
Default: PASS
XML name: routing-type
Description: 如何设置桥接消息上的 routing-type。
bridgeConfigurations.<name>.name
Type: string
Default:
XML name: name
Description: this bridge 的唯一名称。
bridgeConfigurations.<name>.ha
type: boolean
Default: false
XML name: ha
Description: 指定此网桥是否支持故障切换。
bridgeConfigurations.<name>.initialConnectAttempts
Type: int
Default: -1
XML name: initial-connect-attempts
Description: The maximum number of initial connection attempts.默认值 -1
表示没有限制。
bridgeConfigurations.<name>.retryInterval
Type: long
Default: 2000
XML name: retry-interval
Description: 间隔(以毫秒为单位)在连续重试之间。
bridgeConfigurations.<name>.producerWindowSize
Description: int
Default: 1048576
XML name: producer-window-size
Description: Producer flow control。支持字节表示法,例如:"K", "Mb", "MiB", "GB"。
bridgeConfigurations.<name>.clientFailureCheckPeriod
Type: long
Default: 30000
XML name: check-period
Description: the interval, in milliseconds, in the bridge's client check it failed to receive a ping from server。指定 -1
来禁用此检查。
bridgeConfigurations.<name>.discoveryGroupName
Type: String
Default:
XML name: discovery-group-ref
Description:
bridgeConfigurations.<name>.user
Type: String
Default:
XML name: user
Description: Username.如果未指定,则使用 cluster-user。
bridgeConfigurations.<name>.useDuplicateDetection
type: boolean
Default: true
XML name: use-duplicate-detection
Description: 指定是否在转发的消息中插入重复的检测标头。
bridgeConfigurations.<name>.minLargeMessageSize
type: int
Default: 102400
XML name: min-large-message-size
Description: size, in bytes, above,消息被视为大型消息。大型消息通过网络在多个片段中发送。支持字节表示法,例如 "K", "Mb", "MiB", "GB"。