Frequently Asked Questions¶
Common questions and answers about Relyr.
General Questions¶
What is Relyr?¶
Relyr is a high-performance proxy server and networking solution designed for reliability, scalability, and ease of use. It supports HTTP/HTTPS proxies, SOCKS proxies, and advanced features like proxy rotation, authentication, and monitoring.
What protocols does Relyr support?¶
Relyr supports: - HTTP/1.1 and HTTP/2 - HTTPS with SSL/TLS termination - SOCKS4 and SOCKS5 - WebSocket proxying - TCP/UDP forwarding
Is Relyr open source?¶
Yes, Relyr is open source and available on GitHub under the MIT license.
What platforms does Relyr support?¶
Relyr runs on: - Linux (all major distributions) - macOS (Intel and Apple Silicon) - Windows 10/11 - Docker containers - Kubernetes clusters
Installation & Setup¶
How do I install Relyr?¶
See our Installation Guide for detailed instructions. The quickest method is:
# Using package managers
pip install relyr # Python
npm install -g relyr # Node.js
brew install relyr # macOS
What are the system requirements?¶
Minimum: - 512MB RAM - 100MB disk space - Network connectivity
Recommended: - 2GB+ RAM - 1GB+ disk space - 2+ CPU cores
How do I configure Relyr?¶
Create a configuration file at ~/.config/relyr/relyr.yml:
See the Configuration Guide for more details.
Configuration Questions¶
Can I use multiple upstream proxies?¶
Yes, Relyr supports proxy rotation and load balancing:
proxy:
rotation:
enabled: true
strategy: round_robin
proxies:
- host: proxy1.example.com
port: 8080
- host: proxy2.example.com
port: 8080
How do I enable authentication?¶
Configure authentication in your relyr.yml:
Can I use custom SSL certificates?¶
Yes, configure SSL/TLS settings:
How do I configure logging?¶
Customize logging in your configuration:
logging:
level: info # debug, info, warn, error
format: json # json, text
output: file # stdout, file
file: /var/log/relyr/relyr.log
Performance Questions¶
How many concurrent connections can Relyr handle?¶
This depends on your system resources. Relyr can handle thousands of concurrent connections. Configure limits:
How do I optimize performance?¶
-
Enable connection pooling:
-
Adjust timeouts:
-
Use compression:
What's the typical latency overhead?¶
Relyr adds minimal latency (typically 1-5ms) depending on: - Network conditions - Target server response time - Configuration complexity - System resources
Security Questions¶
Is Relyr secure?¶
Yes, Relyr includes several security features: - TLS/SSL encryption - Authentication mechanisms - Access control lists - Request/response filtering - Rate limiting
How do I secure my Relyr installation?¶
-
Enable authentication:
-
Use HTTPS:
-
Configure firewall:
-
Regular updates:
Can I restrict access by IP address?¶
Yes, configure IP whitelisting:
How are passwords stored?¶
Passwords are hashed using bcrypt with a configurable cost factor:
API Questions¶
Does Relyr have an API?¶
Yes, Relyr provides a comprehensive REST API for management and monitoring. See our API Documentation.
How do I authenticate with the API?¶
Use API keys, bearer tokens, or basic authentication:
# API Key
curl -H "X-API-Key: your-api-key" http://localhost:8080/api/v1/proxies
# Bearer Token
curl -H "Authorization: Bearer your-token" http://localhost:8080/api/v1/proxies
Are there SDKs available?¶
Yes, official SDKs are available for:
- Python: pip install relyr-python
- Node.js: npm install relyr-node
- Go: go get github.com/relyr/relyr-go
Monitoring Questions¶
How do I monitor Relyr?¶
Relyr provides multiple monitoring options:
-
Built-in health checks:
-
Metrics endpoint:
-
API endpoints:
What metrics are available?¶
Key metrics include: - Requests per second - Response times (avg, p95, p99) - Active connections - Error rates - Bandwidth usage - Memory/CPU usage
Can I integrate with monitoring systems?¶
Yes, Relyr supports: - Prometheus metrics - StatsD integration - Custom webhooks - Syslog output
monitoring:
prometheus:
enabled: true
port: 9090
statsd:
enabled: true
host: statsd.example.com
port: 8125
Docker Questions¶
How do I run Relyr in Docker?¶
# Basic usage
docker run -d -p 8080:8080 relyr/relyr:latest
# With custom configuration
docker run -d -p 8080:8080 \
-v $(pwd)/config:/etc/relyr \
relyr/relyr:latest
Can I use Docker Compose?¶
Yes, here's a sample docker-compose.yml:
version: '3.8'
services:
relyr:
image: relyr/relyr:latest
ports:
- "8080:8080"
volumes:
- ./config:/etc/relyr
environment:
- RELYR_LOG_LEVEL=info
How do I persist data in Docker?¶
Mount volumes for configuration and data:
docker run -d \
-v relyr-config:/etc/relyr \
-v relyr-data:/var/lib/relyr \
-v relyr-logs:/var/log/relyr \
relyr/relyr:latest
Kubernetes Questions¶
Can I deploy Relyr on Kubernetes?¶
Yes, Relyr works well in Kubernetes. See our Kubernetes examples.
How do I scale Relyr in Kubernetes?¶
Use horizontal pod autoscaling:
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: relyr-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: relyr
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
Troubleshooting Questions¶
Relyr won't start. What should I check?¶
-
Check logs:
-
Validate configuration:
-
Check port availability:
-
Verify permissions:
Why are my proxy connections slow?¶
Common causes and solutions:
- Network latency: Test direct connection
- DNS issues: Configure DNS servers
- Upstream proxy problems: Test upstream directly
- Resource constraints: Monitor CPU/memory usage
How do I enable debug logging?¶
Update your configuration:
Or use environment variable:
Integration Questions¶
Can I use Relyr with existing applications?¶
Yes, Relyr works with any application that supports HTTP/HTTPS proxies. Configure your application to use Relyr as a proxy server.
Does Relyr work with load balancers?¶
Yes, you can place Relyr behind load balancers like: - nginx - HAProxy - AWS Application Load Balancer - Google Cloud Load Balancer
Can I integrate with CI/CD pipelines?¶
Yes, Relyr can be used in CI/CD for: - Testing through proxies - Accessing internal resources - Network security testing
Example GitHub Actions:
- name: Start Relyr
run: |
docker run -d -p 8080:8080 relyr/relyr:latest
sleep 5
- name: Test through proxy
run: |
curl -x http://localhost:8080 https://api.example.com
Licensing Questions¶
What license does Relyr use?¶
Relyr is released under the MIT License, which allows: - Commercial use - Distribution - Modification - Private use
Can I use Relyr in commercial projects?¶
Yes, the MIT license allows commercial use without restrictions.
Do I need to pay for Relyr?¶
The open-source version is completely free. Enterprise support and additional features may be available through commercial licenses.
Getting Help¶
Where can I get support?¶
- Documentation: This site and GitHub Wiki
- Issues: GitHub Issues for bugs and feature requests
- Community: Community Forum for discussions
- Chat: Discord Server for real-time help
How do I report a bug?¶
- Check existing GitHub Issues
- Create a new issue with:
- Relyr version (
relyr version) - Operating system
- Configuration file (sanitized)
- Error logs
- Steps to reproduce
How do I request a feature?¶
- Check if it's already requested in GitHub Issues
- Create a feature request with:
- Clear description of the feature
- Use case/motivation
- Proposed implementation (if applicable)
Is commercial support available?¶
Yes, commercial support options include: - Priority support - Custom feature development - Training and consulting - SLA guarantees
Contact us at support@relyr.io for more information.