-
Taking advantage of LDAP auth to serve 1000+ unique customers with individual resource limits.
The problem: Company customer base is above 1000 client username limit of Standard edition broker. There is also a need to limit the number of connections/resources per unique customer. The solution to username limit: By setting up LDAP authorization, the broker will match directory entry with the client entered username.…
-
Increasing max-connection limit of your PubSub+ broker
Every PubSub+ broker instance has a max connection limit that can be configured. If you are using the Standard Edition, this limit is capped at 1000 connections. While there are many usecases where you don't need to change your connection count, to be able to use Solace's powerful event mesh capability, you need to set…
-
View or peek messages on a queue - queue browsing
Want to see what's on a queue without consumi.ng the messages? Got a poison message that's killing your app but dont know why? Here's an example of this type of question: https://solace.community/discussion/198/possible-to-export-message-payload-in-queue-level#latest What you need is a queue browser. This reads a message…
-
Fail back to broker configuration for IPC clients
If you need to set up IPC connections, you introduce dependencies in application start-up order and availability: if your IPC listener isn't up when your connection initiator starts, you get a failure. To mitigate this, you might like the option of your IPC connection failing back to a broker connection. This ensures the…
-
How to get and test information on discarded messages
Problem You see that you are having a lot of ingress discards due to No Subscription Match and are looking for more information about these messages. The information that might be pertinent is: Topic, Client Username, and Message VPN name. Solution Use the following command to get the information about the messages:…
-
Simple file sender / receiver over Event Broker
Simple cURL REST POST and python MQTT receiver to move a file across solace. Curl Sender 1. Create directory with files for sending: 'sender' 2. Add password to 'restpass' variable resthost=mr1nljqp0y2dox.messaging.solace.cloudrestport=9000restuser=solace-cloud-clientrestpass=passwordfilemask=./sender/*for filepath in…
-
How can I limit (or increase) the maximum of consumer flows that may bind to a queue?
To limit or increase the number of clients that can bind to a queue, you can set the max-bind-count on the queue. By default that value is 1000. To change that value, issue the following CLI command: home > enable > configure > message-spool message-vpn VPNNAME > queue QNAME > max-bind-count <NEW-VALUE> > home NEW-VALUE…
-
Delete old messages on Solace
Background: For efficiency, when the router needs to store messages for slow or offline consumers, it writes groups of messages to the disk into a single (spool) file. The spool file may contain messages from multiple queues and must remain on the disk until all of the messages are consumed or deleted from the various…
-
Provision your VPN with Infrastructure as Code manner
Hi Guys, I've built a tool for myself to easily backup and provision the VPN. The basic idea is to recursively GET all config from a VPN and write it down into a single JSON file, and you can do it reversely to provision the VPN (event after you modified the JSON file). Please access https://github.com/flyisland/sempv2 to…
-
Doing request/reply over Solace websockets using a custom replyTo Destination
If you have a requirement to using a custom replyTo destination for your request using the Solace Websockets API - follow along this tutorial - https://solace.com/samples/solace-samples-javascript/request-reply/ and make the following enhancements: Add the following function to the BasicRequestor.js - requestor.subscribe =…
-
How to migrate data from old Solace VMR to the latest PubSub+ version
Problem Upgrading your Solace Virtual Message Router (VMR) to the latest Solace PubSub+ software message broker will preserve all data (topic, queues, and all other configurations). However, upgrading is not an option for you. You are not sure how to migrate the data in that case. Prerequisite Download Solace PubSub+…
-
Subscribing to log messages in Solace Cloud
Hi Solace Community, I was recently working on a task which required me to look at log messages using Solace Cloud. Because Solace Cloud is a managed service, I wasn't sure whether these logs were exposed to me or not and if they were, how detailed they would be. With help from my teammates, I eventually figured out how to…
-
How to run Solace PubSub+ with unprivileged user
If you need to run Solace PubSub+ on docker but want to use unprivileged user, please take a look at the following sample command. docker run -d --user 1000 \-p 80:1080 -p 443:1443 -p 943:1943 \-p 8080:8080 -p 8443:8443 -p 8883:8883 -p 9000:9000 -p 9443:9443 \-p 2222:2222 -p 55555:55555 -p 1883:1883 -p 8000:8000…
-
Maximum number of VPNs in a cluster
For the Standard version of Solace PubSub+, how many VPNs can you use in a cluster? The number is dependent on the scaling tier you are on. The default for Solace PubSub+ Standard is 3 VPNs: 2 custom and 1 default. If you want more VPNs, refer to this document to change the scaling tier (just ensure you allocate the…
-
A surprising twist of the CLI copy command
Normally, the generic CLI copy command copies local and remote files. Typically, you give the copy command the source path and the destination path. Either the source or the destination path (but not both) can be on a remote machine. The local paths are relative to the CLI root. Some examples: copy…
-
How to start your Docker container using a different port
Problem When you start Solace PubSub+ using Docker, it exits with an error message like the following: * docker: Error response from daemon: driver failed programming external connectivity on endpoint solacePSPlusStandard … (really long numbers here): Error starting userland proxy: listen tcp 0.0.0.0:8080: bind: address…
-
How to find a free TCP port for testing PubSub+ with Docker
To run a network server like Solace PubSub+, you must configure it to use ports that are not currently in use. However, ports 80 and 8080 are often used by other applications. This means that you need to find a free TCP port in order to test PubSub+ using Docker. Before you can find out which port is free, you have to find…
-
Workaround for ws:// connection problem
If you are having trouble connecting to ws:// in PubSub+ Cloud, this is because HTTP Strict Transport Security may be causing your browser to forcefully upgrade your websocket connections to secured websocket connections. This results in the message broker rejecting the connection because the unsecured web messaging port…
-
all possible CLI commands: "tree" CLI command
If you're not sure where in the CLI your command is, you can dump out all possible CLI commands with the "tree" command. That output is also handy to search through in the documentation here: https://docs.solace.com/Solace-CLI/CLI-Reference/VMR_CLI_Commands.html…
-
How to manually adjust the VPN limits
Problem After typing in the command solace> show message-spool message-vpn Solace_VPN in the Solace Command Line Interface (CLI), you find that the output value for Configured Max Egress Flows does not match that for Max Egress Flows. Prerequisite Download SolAdmin. Solution There are two options for fixing the issue. If…
-
How to ensure all your transactions work
Problem Using Solace’s Java, JavaRTO, C, .NET or JMS APIs, you have allowed client applications to group multiple message send and/or receive operations together as a single unit. However, out of the total number of operations, only some work. Prerequisite Download the free SolAdmin Solution For all the operations to work,…