
firecracker v1.17.0
सर्वरलेस कंप्यूटिंग के लिए सुरक्षित और तेज़ माइक्रोVM।
हमारा मिशन कंटेनर और फ़ंक्शन वर्कलोड के सुरक्षित, मल्टी-टेनेंट, न्यूनतम-ओवरहेड निष्पादन को सक्षम करना है।
Firecracker चार्टर के बारे में अधिक पढ़ें यहाँ।
Firecracker क्या है?
Firecracker एक ओपन सोर्स वर्चुअलाइज़ेशन तकनीक है जो विशेष रूप से सुरक्षित, मल्टी-टेनेंट कंटेनर और फ़ंक्शन-आधारित सेवाओं को बनाने और प्रबंधित करने के लिए बनाई गई है जो सर्वरलेस ऑपरेशनल मॉडल प्रदान करती हैं। Firecracker वर्कलोड को हल्के वर्चुअल मशीनों में चलाता है, जिन्हें microVM कहा जाता है, जो हार्डवेयर वर्चुअलाइज़ेशन तकनीक द्वारा प्रदान की जाने वाली सुरक्षा और आइसोलेशन विशेषताओं को कंटेनर की गति और लचीलेपन के साथ जोड़ते हैं।
अवलोकन
Firecracker का मुख्य घटक एक वर्चुअल मशीन मॉनिटर (VMM) है जो microVM बनाने और चलाने के लिए Linux Kernel Virtual Machine (KVM) का उपयोग करता है। Firecracker एक गेस्ट को Nitro Sandbox के रूप में भी चला सकता है, जिसे KVM के बजाय AWS Nitro System द्वारा आइसोलेट किया जाता है। Firecracker का डिज़ाइन मिनिमलिस्ट है। यह प्रत्येक microVM की मेमोरी फ़ुटप्रिंट और अटैक सरफेस क्षेत्र को कम करने के लिए अनावश्यक डिवाइस और गेस्ट-फेसिंग कार्यक्षमता को बाहर रखता है। यह सुरक्षा में सुधार करता है, स्टार्टअप समय को कम करता है, और हार्डवेयर उपयोग को बढ़ाता है। Firecracker को कंटेनर रनटाइम में भी एकीकृत किया गया है, उदाहरण के लिए Kata Containers और Flintlock।
Firecracker को Amazon Web Services में AWS Lambda और AWS Fargate जैसी सेवाओं की गति और दक्षता को तेज़ करने के लिए विकसित किया गया था। Firecracker Apache version 2.0 के अंतर्गत ओपन सोर्स है।
Firecracker के बारे में अधिक पढ़ने के लिए, firecracker-microvm.io देखें।
शुरुआत करना
Firecracker के साथ शुरुआत करने के लिए, नवीनतम रिलीज़ बाइनरीज़ डाउनलोड करें या इसे सोर्स से बिल्ड करें।
आप Firecracker को किसी भी Unix/Linux सिस्टम पर बिल्ड कर सकते हैं जिसमें Docker चल रहा हो (हम एक डेवलपमेंट कंटेनर का उपयोग करते हैं) और bash इंस्टॉल हो, निम्नानुसार:
git clone https://github.com/firecracker-microvm/firecracker
cd firecracker
tools/devtool build
toolchain="$(uname -m)-unknown-linux-musl"
The Firecracker binary will be placed at
build/cargo_target/${toolchain}/debug/firecracker. For more information on
building, testing, and running Firecracker, go to the
quickstart guide.
The overall security of Firecracker microVMs, including the ability to meet the criteria for safe multi-tenant computing, depends on a well configured Linux host operating system. A configuration that we believe meets this bar is included in the production host setup document.
Contributing
Firecracker is already running production workloads within AWS, but it's still Day 1 on the journey guided by our mission. There's a lot more to build and we welcome all contributions.
To contribute to Firecracker, check out the development setup section in the getting started guide and then the Firecracker contribution guidelines.
Releases
New Firecracker versions are released via the GitHub repository releases page, typically every two or three months. A history of changes is recorded in our changelog.
The Firecracker release policy is detailed here.
Design
Firecracker's overall architecture is described in the design document.
Features & Capabilities
Firecracker consists of a single micro Virtual Machine Manager process that exposes an API endpoint to the host once started. The API is specified in OpenAPI format. Read more about it in the API docs.
The API endpoint can be used to:
- Configure the microvm by:
- Setting the number of vCPUs (the default is 1).
- Setting the memory size (the default is 128 MiB).
- Configuring a CPU template.
- Add one or more network interfaces to the microVM.
- Add one or more read-write or read-only disks to the microVM, each represented by a file-backed block device.
- Trigger a block device re-scan while the guest is running. This enables the guest OS to pick up size changes to the block device's backing file.
- Change the backing file for a block device, before or after the guest boots.
- Configure rate limiters for virtio devices which can limit the bandwidth, operations per second, or both.
- Configure the logging and metric system.
[BETA]Configure the data tree of the guest-facing metadata service. The service is only available to the guest if this resource is configured.- Add a vsock socket to the microVM.
- Add a entropy device to the microVM.
- Add a pmem device to the microVM.
- Configure and manage memory hotplugging.
[Developer Preview]Hot-plug and hot-unplug virtio PCI devices while the VM is running.- Run the guest as a Nitro Sandbox on an EC2 instance, isolated by the AWS Nitro System rather than by KVM, with optional attestation.
- Start the microVM using a given kernel image, root file system, and boot arguments.
- [x86_64 only] Stop the microVM.
Built-in Capabilities:
- Demand fault paging and CPU oversubscription enabled by default.
- Advanced, thread-specific seccomp filters for enhanced security.
- Jailer process for starting Firecracker in production scenarios; applies a cgroup/namespace isolation barrier and then drops privileges.
Tested platforms
We test all combinations of: