Deploy Your First Automated Policy
Enable RioDB analytics and deploy a supported policy for live traffic detection.
Automated policies are optional. They use RioDB to evaluate live HAProxy traffic events and write rule decisions for proxyble-rule-agent to validate and apply. Use them only after the listener and backend are working normally.
Confirm the prerequisites
Before deploying a policy, make sure that:
- A listener and backend are configured and Proxyble services are healthy.
- You understand the policy’s traffic impact and have a rollback plan.
- The listener mode supports the policy. Policies that inspect HTTP information require HTTP mode or HTTPS mode with TLS termination; HTTPS pass-through does not expose request paths or headers.
Add RioDB
If you installed Core only, add RioDB analytics from the Proxyble terminal UI by choosing Installation and then Add RioDB. The command-line equivalent is:
sudo proxyble --yes --installation-add-riodb --accept-license
RioDB has its own license. Review and accept it only if it fits your environment. Proxyble configures RioDB, installs Java when necessary, refreshes HAProxy logging, and enables the Policies workflow.
Deploy a policy
api_flood_control is a bundled policy that evaluates request floods, endpoint spread, error pressure, and connection bursts. Deploy it with:
sudo proxyble --policies-deploy \
--policy api_flood_control \
--restart-riodb
Restarting RioDB applies the policy immediately. In the terminal UI, choose Policies, then Deploy, and select a compatible policy.
Check and roll back
List deployed policies:
sudo proxyble --policies-list
To remove the example policy and restart RioDB:
sudo proxyble --yes --policies-remove \
--policy api_flood_control \
--restart-riodb
Policies can create real enforcement decisions. Start with controlled traffic, monitor the affected API and backend, and remove or adjust a policy if it does not fit your traffic profile.
Next step
Read Proxyble Architecture to understand the handoff from traffic events to enforcement, then use Manual Rules and Automated Policies to choose the right control model.