Skip to content

soketi/network-watcher

Repository files navigation

Network Watcher

CI codecov StyleCI License

v1.20.10 K8s Version v1.21.4 K8s Version v1.22.1 K8s Version

Network Watcher is soketi's companion that scouts the memory to avoid memory depletion.

This project was meant to be deployed in the same Pod (as a sidecar container) with soketi. Network Watcher will continuously scan the memory usage for soketi containers and in case a specific threshold is reached, it will update the Kubernetes Pod's labels to avoid new connections from kicking in, while keeping the old ones active. You can find examples in the documentation.

🤝 Supporting

soketi is meant to be free, forever. Having a good companion for developing real-time apps locally should not involve any third-party and having a reliable option to deploy behind a firewall makes soketi a good option.

Development is done by investing time, so any help coming is appreciated. You can sponsor the development via Github Sponsors. 📦

📜 Documentation

The integration steps of Network Watcher with your soketi-running Kubernetes Pods is available in the official documentation.

🚀 Installation

$ composer install --ignore-platform-reqs && cp .env.example .env

Running the Network Watcher

$ php artisan network:watch

🐛 Testing

vendor/bin/phpunit

🤝 Contributing

Please see CONTRIBUTING for details.

🔒 Security

If you discover any security related issues, please email alex@renoki.org instead of using the issue tracker.

🎉 Credits