Supported Versions
Zerops currently supports Elasticsearch version 8.16. When importing a service, use version format:elasticsearch@8.16
Resource Requirements
- Minimum RAM: 0.25 GB
- Recommended: Scale based on your data volume and query complexity
Connection Details
Access Configuration
- Port: 9200
- Protocol: HTTP only
- Internal Access:
http://{hostname}:9200
Authentication
Elasticsearch uses basic authentication:- User:
elastic - Password: Randomly generated during service creation
- Find password under Access Details in service detail page
Example Connection
Configuration Options
Plugin Management
Configure Elasticsearch plugins using environment variables:- Defines plugins to install at service startup
- Format:
plugin1,plugin2,...(comma-separated list) - Service automatically installs specified plugins during initialization
- Removing a plugin from this list triggers uninstallation on service restart
JVM Heap Allocation
Control the JVM heap size as a percentage of container memory:- Value represents the percentage of container memory allocated to JVM heap
- Default: 50% of available container memory
- Valid range: 1-100
- To increase available memory, adjust the service’s RAM allocation in scaling configuration
Changes to
HEAP_PERCENT require a service restart to take effect.Example Configuration
Backup and Restore
Backup Format
Elasticsearch backups are created usingelasticdump:
- Format:
.gz(per index/component dump) - Tooling:
elasticdump - Compression: Gzip compressed JSON data
Restoring Backups
To restore an Elasticsearch backup:- Download the backup file (
.gz) from the Zerops UI - Extract the compressed files to access the JSON data
- Prepare your target environment (clean existing indices or use a new instance)
- Restore using either:
- elasticdump tool: Use the same tool that created the backup for restoration via Zerops VPN or during deployment
- Elasticsearch API: Import the data through REST API calls
Use Cases
Elasticsearch excels in:- Full-text Search - Powerful search capabilities with relevance scoring
- Log Analytics - Centralize and analyze application logs
- Application Monitoring - Track metrics and performance data
- Security Analytics - Detect threats and analyze security events
- Business Analytics - Search and analyze business data
Best Practices
Performance
- Allocate sufficient heap memory for your workload
- Use appropriate shard counts for your data volume
- Monitor cluster health and resource usage
- Implement index lifecycle management policies
Security
- Store credentials in environment variables
- Use internal connections when possible
- Implement proper authentication in production
- Regularly update to latest supported versions
Data Management
- Plan index mappings before ingesting data
- Use appropriate refresh intervals for your use case
- Implement backup strategies for critical data
- Monitor disk space and plan for growth
Related Resources
Support
For advanced configurations or custom requirements:- Join our Discord community
- Contact support via email