Skip to content

Deployment-Related Questions ​

Can I extend the free trial deployment? ​

Yes.

If you have special requirements or other conditions, you can submit a ticket or send an email (cloud-support@emqx.io) to us, and we will reply within 24 hours.

How to connect to the deployment? ​

You can connect via client such as MQTTX. You can also connect via the SDK, see Connect to Deployments for more information.

What are the common causes for connection failure? ​

  1. Check that the deployment is in a running state and that the system will automatically stop for deployments that are not actively connected.
  2. Check that the connection address and port are correct. If it is a Standard instance, the port numbers are not 1883 and 8883.
  3. Authentication is required. You need to set a username and password in Authentication > Authentication and connect via the correct username and password.

Why must the MQTT client include SNI when connecting to EMQX Cloud Serverless? ​

In an EMQX Cloud Serverless deployment, multiple tenants share the same infrastructure. To maintain tenant isolation and security, EMQX Cloud relies on the Server Name Indication (SNI), which helps determine the correct tenant service based on the domain name provided by the client during the connection.

SNI is part of the TLS handshake protocol, allowing the client to specify the target domain. Without SNI, the server cannot identify the correct tenant associated with the connection, which results in authentication failure.

If the client fails to include SNI, EMQX will return MQTT error code 0x5 (authentication failed) because it cannot select the appropriate certificate or tenant information.

My deployment has been deleted by mistake. Can I recover it? ​

You need to double-check the right deployment name before deleting a deployment. Deployments cannot be recovered after they have been deleted.

Does EMQX Cloud provide DDoS protection? ​

EMQX Cloud provides basic Distributed Denial-of-Service (DDoS) attack protection for public endpoints, provided by the underlying cloud service provider. This protection is designed to handle common small-scale DDoS attacks. If you require more advanced protection (e.g., protection against large-scale attacks), we can assist in connecting you with the cloud provider or third-party security services for additional DDoS protection.

In addition, EMQX has several built-in mechanisms to prevent DoS (Denial of Service) attacks on the protocol level:

  • Maximum MQTT message size: By default, messages larger than 1 MB are rejected.
  • Protocol compliance checks: EMQX strictly follows MQTT protocol standards, and any malformed or non-compliant messages are discarded immediately.
  • Frequent reconnection detection (Flapping Detection): EMQX automatically detects frequent disconnections and reconnections, triggering session bans to prevent system overloads from abnormal connections.
  • Connection rate limiting: A maximum of 500 new connections per second is allowed per EMQX node to prevent resource exhaustion due to sudden spikes in connections.
  • Client publishing rate limit: Each client is limited to publishing a maximum of 1500 messages per second (TPS). Excess messages will be throttled or discarded.

For more details on client blacklisting and frequent reconnection detection, refer to the official Blacklist documentation.

Note: Any service downtime caused by DDoS attacks is not covered by the EMQX Cloud SLA.

How can I get the messages sent by the client in the deployment console? ​

Messages sent from the client cannot be viewed directly in the deployment console and need to be persisted using data integrations for forwarding, while EMQX Cloud does not store client messages.

How can I scale deployments? ​

For Dedicated Flex deployments, the EMQX Cloud supports automatic scaling by submitting a ticket or changing tiers directly in the Platform Console. For more information, see Change Deployment Tiers.

The scaling lasts for 5 to 15 minutes. During the scaling period, it will not affect the normal use of the service, but the device may be disconnected and reconnected for a few seconds. If the device is configured for automatic reconnection, it will not affect use, and the connection address remains the same.

Free Quota for Serverless Deployments ​

When creating a Serverless deployment in the EMQX Cloud console, keep the monthly spend limit at the default value of 0. This allows you to create a free deployment with 1 million session minutes and 1 GB of traffic per month. You can refer to the Create Serverless Deployment for specific steps.

Where can I see the usage of my quota? ​

You can view statistics on session minutes and traffic usage on the deployment overview page. Usage statistics are updated every hour, meaning that the displayed consumption figures may be delayed by one hour.

What happens if I exceed the free quota for the month? ​

If the spend limit is set to 0, the deployment stops when the free quota for either session minutes or traffic is exhausted. You cannot restart the deployment while the free quota is exhausted and the current spend limit does not allow paid usage.

The deployment does not restart automatically after new free quota becomes available at the start of the next month or after you increase the spend limit. Once the conditions required to start the deployment are met, manually restart it from the Console.

If my deployment is stopped due to exceeding the free quota, how can I continue using it? ​

To continue using the deployment in the current month, go to Deployment Settings > Billing Method > Change Spend Limit and increase the spend limit to a value that allows the deployment to continue running. If your account does not have a payment method, add one first. After increasing the spend limit and ensuring that the account has a valid payment method and, where applicable, sufficient balance, manually restart the deployment from the Deployment Overview page.

Alternatively, wait until new free quota becomes available at the start of the next month, and then manually restart the deployment.

Manage Paid Usage of Serverless Deployments ​

If the free quota for each month does not meet your usage needs, you can set spend limit based on your actual requirements. For example, if you set a spend limit of 50 dollars, during usage in the current month, the free quota will be consumed first. Once the free quota is used up, charges are calculated hourly and added to the monthly bill. If your monthly spending exceeds 50 dollars, the system stops the deployment or sends a reminder and continues billing, depending on the action you selected.

How can I prevent my deployment from stopping when using it with paid usage? ​

If your business volume is substantial and you want to prevent the deployment from stopping, it's recommended to set a higher spend limit or choose Remind me and keep billing when you edit the Serverless spend limit. Ensure that your account is set with a payment method.

Can I modify the spend limit? ​

You can modify the spend limit at any time, either by increasing or decreasing it. Saving changes to the spend limit or the selected action does not immediately stop a running deployment. When the spend limit is greater than 0 and Suspend the deployment is selected, the deployment stops only after a subsequent scheduled usage check detects that monthly spending exceeds the limit.

If the deployment is suspended after exceeding the spend limit, you cannot restart it while the current limit still prevents further usage. Increase the spend limit until it allows further usage, ensure that the account has a valid payment method and, where applicable, sufficient balance, and then manually restart the deployment from the Console. Changing the spend limit does not automatically restart the deployment.

If you selected Remind me and keep billing, exceeding the spend limit triggers an email notification and the deployment continues running and incurring charges.

When will I receive an email notice? ​

When your usage for the month reaches 75% of the free quota, the email associated with your account will receive a reminder. When your monthly spending exceeds the spend limit, the email associated with your account will receive another reminder. Please ensure to check your email for these notifications.

How to Maintain a Stable SSH Session Before Deploying BYOC ​

Unstable network conditions may cause SSH sessions to disconnect, which can interrupt or fail the BYOC deployment process. To avoid this, we recommend using the terminal multiplexer tmux. Tasks running inside a tmux session continue to run in the background even if the SSH connection is lost, ensuring that the deployment process proceeds without interruption.

Use tmux to Maintain a Stable Deployment Session ​

tmux is a terminal session manager well suited for long-running operations. Follow the steps below:

  1. Install tmux (if not already installed):

    sudo apt install tmux -y
  2. Start a new tmux session:

    tmux new -s byoc
  3. Run the BYOC deployment command within the tmux session:

    ./byoc create ...
  4. If the SSH connection is interrupted, reconnect and restore the session:

    tmux attach -t byoc