Test load balancer traffic distribution and failover strategies
Tests load balancer traffic distribution, failover, and session affinity strategies.
/plugin marketplace add jeremylongshore/claude-code-plugins-plus-skills/plugin install load-test-runner@claude-code-plugins-plusTest load balancing strategies including round-robin, least connections, weighted distribution, sticky sessions, and failover scenarios.
describe('Load Balancer Tests', () => {
it('distributes traffic evenly with round-robin', async () => {
const requests = 100;
const backends = ['backend1', 'backend2', 'backend3'];
const distribution = await sendRequests(requests);
backends.forEach(backend => {
expect(distribution[backend]).toBeCloseTo(requests / backends.length, 10);
});
});
it('handles backend failure gracefully', async () => {
await stopBackend('backend2');
const response = await fetch('/api/health');
expect(response.status).toBe(200);
});
});