Overview
Memcached version and service status
Memcached version and systemd service status on a freshly launched instance.
Memcached version and service status
Memcached stats command output
Memcached set and get operations
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
Memcached - Production-Ready Distributed Cache by cloudimg
Memcached is the high-performance, open-source distributed memory object caching system used by web frameworks, APIs, and high-traffic services to offload database load and accelerate dynamic web applications. This AMI delivers Memcached fully installed, authenticated, and configured so you have a working, secure cache server within minutes of launch.
Why This Image Instead of Alternatives
Stock Memcached ships with no authentication - any client that can reach port 11211 can read and write your cache. Most competing AMIs use shared default passwords that are identical across every deployment. This image solves both problems: SASL PLAIN authentication is compiled in and required by default, and every instance generates its own unique credentials on first boot. Unlike AWS ElastiCache, you retain full control over SASL configuration, instance placement, and OS-level tuning.
What Is Included
- Memcached from the OS package repository with SASL PLAIN authentication compiled in and required
- cyrus-sasl2 plumbing for credential management
- libmemcached-tools client utilities (memcstat, memcset, memcget)
- python3-pylibmc client library for Python integration
- nginx healthcheck shim on port 80 for AWS load balancer and scanner probes
- Memcached service enabled, starts on boot, listens on 11211
Integrations
This image works with the tools and services your team already uses:
- AWS Services: Deploy within Amazon VPC for network isolation, place behind an Application Load Balancer using the nginx healthcheck on port 80, and monitor with Amazon CloudWatch custom metrics.
- Web Frameworks: Compatible with Django (django-pymemcache), Ruby on Rails (dalli gem), Laravel (Memcached cache driver), and Express/Node.js (memjs) - any SASL-aware client library connects immediately.
- Databases: Use as a read-through cache layer in front of Amazon RDS, MySQL, or PostgreSQL to reduce query load during traffic spikes.
Secure First Boot
On every instance's first boot, a one-shot service generates a fresh SASL PLAIN password for the cloudimg user, writes it to the SASL credential database, and records it in a root-only file at /root/memcached-credentials.txt. No shared or default credentials ship in the image.
Network Posture
Memcached listens on 0.0.0.0:11211 so application servers in your VPC can connect. Restrict the inbound security group rule to your application CIDR before deploying real workloads. The nginx healthcheck shim serves a static response on port 80 for AWS Marketplace scanners and external load balancers; customer traffic uses port 11211.
Ready To Use
Connect over SSH, read the generated credentials from /root/memcached-credentials.txt, and immediately start storing and retrieving objects with memcset/memcget or any SASL-aware client library.
Example Use Case: E-Commerce Catalog Caching
An e-commerce platform running Django behind an ALB experiences database saturation during flash sales as thousands of concurrent users query the same product catalog. By routing repeated catalog queries through this Memcached instance, the team eliminates redundant database reads, keeps sub-millisecond GET latency on cached items, and maintains responsive page loads even at peak traffic - all with authenticated access that prevents cache poisoning from rogue clients in the VPC.
Additional Use Cases
- Session storage for web applications (replacing sticky sessions or shared database tables)
- API response caching for high-traffic microservices
- Rate limiter counters and ephemeral key-value state
- Database query result caching to reduce read replica load
Get Started
Launch the AMI, retrieve your unique credentials, and connect your application's Memcached client. For a guided sizing consultation or security review, contact cloudimg support - available 24/7 by email and chat.
All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
Highlights
- Memcached preinstalled with SASL PLAIN authentication compiled in and required by default, listening on 11211 and started on boot
- Per instance credentials: a fresh SASL password for the cloudimg user is generated on first boot and recorded in a root only file
- 24/7 technical support from cloudimg for cache configuration, sizing, client integration, security review and upgrades
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
- ...
Dimension | Description | Cost/hour |
|---|---|---|
m5.large Recommended | m5.large | $0.08 |
t2.micro | t2.micro instance type | $0.04 |
t3.micro | t3.micro instance type | $0.04 |
c8in.metal-48xl | c8in.metal-48xl instance type | $0.24 |
m5ad.2xlarge | m5ad.2xlarge instance type | $0.24 |
c8ine.2xlarge | c8ine.2xlarge instance type | $0.24 |
r5n.2xlarge | r5n.2xlarge instance type | $0.24 |
i7ie.3xlarge | i7ie.3xlarge instance type | $0.24 |
t3.xlarge | t3.xlarge instance type | $0.12 |
m8i.32xlarge | m8i.32xlarge instance type | $0.24 |
Vendor refund policy
Refunds available on request.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Initial release of Memcached 1.6 on AWS.
Additional details
Usage instructions
Connect via SSH on port 22 as the default login user for your operating system variant (the user guide lists it per variant). Memcached is already running and listening on 11211 with SASL PLAIN required. Read the per instance credentials with: sudo cat /root/memcached-credentials.txt. Test the cache with libmemcached-tools: memcstat --servers=127.0.0.1:11211 --binary --username='cloudimg' --password='<password>'. Restrict the inbound 11211 security group rule to your application CIDR before exposing the cache to real traffic.
Resources
Vendor resources
Support
Vendor support
cloudimg Support
cloudimg provides 24/7 technical support for this Memcached AMI by email and live chat.
What We Help With:
- Deployment and initial configuration
- Cache sizing and EC2 instance type recommendations
- Client integration (Django, Rails, Laravel, Express, and other SASL-aware libraries)
- SASL authentication setup and security review
- Performance tuning and troubleshooting
- Upgrades and patching
Response Times:
Critical issues receive a one-hour average response time. Our engineers work with you through resolution, not just initial acknowledgment.
Sizing Consultation:
Not sure which instance type fits your workload? Contact us for a guided sizing consultation to match your cache requirements to the right EC2 configuration.
Contact:
Email: support@cloudimg.co.uk
Live chat available 24/7.
For billing questions, refund requests, or subscription management, contact us at the same email address and we will assist promptly.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.