wire psrpc bus compression into the message bus constructor (#4844)
getMessageBus built the bus from the redis client alone, so there was no way to reach the gzip settings psrpc v0.7.6 added at the bus boundary. Take rpc.PSRPCConfig, which the wire graph already provides, and pass its bus options to both the redis and the local bus. Compression is off by default. A peer on an older psrpc cannot decode a compressed payload and drops it silently, so egress, ingress, SIP and agent workers all have to be upgraded before quality is raised.
This commit is contained in:
@@ -268,6 +268,15 @@ keys:
|
||||
# backoff: 500ms
|
||||
# # number of messages to buffer before dropping
|
||||
# buffer_size: 1000
|
||||
# # optional gzip compression of bus payloads
|
||||
# compression:
|
||||
# # gzip level 1-9; 0 disables. every node on the bus must support
|
||||
# # compression before enabling it
|
||||
# quality: 0
|
||||
# # payload bytes below which compression is skipped
|
||||
# threshold: 1024
|
||||
# # cap on an inbound payload after decompression, 0 for unlimited
|
||||
# max_decompressed_size: 0
|
||||
|
||||
# customize audio level sensitivity
|
||||
# audio:
|
||||
|
||||
Reference in New Issue
Block a user