Real World Edge Computing
local graph
Real World Edge Computing
Section titled “Real World Edge Computing”chapter_01
Section titled “chapter_01”node-book_real-world-edge-computing_chapter-01-fundamentals-of-edge-computing — Fundamentals of Edge Computing
chapter_02
Section titled “chapter_02”node-book_real-world-edge-computing_chapter-02-practicalities-of-edge-computing — Practicalities of Edge Computing
chapter_03
Section titled “chapter_03”node-book_real-world-edge-computing_chapter-03-designing-and-building-edge-software — Designing and Building Edge Software
chapter_04
Section titled “chapter_04”node-book_real-world-edge-computing_chapter-04-edge-container-platforms — Edge Container Platforms
chapter_05
Section titled “chapter_05”node-book_real-world-edge-computing_chapter-05-application-placement-and-lifecycle-management — Application Placement and Lifecycle Management
chapter_06
Section titled “chapter_06”node-book_real-world-edge-computing_chapter-06-installing-an-edge-agent-on-an-edge-node — Installing an Edge Agent on an Edge Node
chapter_07
Section titled “chapter_07”node-book_real-world-edge-computing_chapter-07-register-an-edge-node — Register an Edge Node
chapter_08
Section titled “chapter_08”node-book_real-world-edge-computing_chapter-08-using-the-open-horizon-cli-and-api — Using the Open Horizon CLI and API
chapter_09
Section titled “chapter_09”node-book_real-world-edge-computing_chapter-09-autonomous-and-flexible-management-of-edge-services — Autonomous and Flexible Management of Edge Services
chapter_10
Section titled “chapter_10”node-book_real-world-edge-computing_chapter-10-managing-edge-scale-with-policy-based-workload-placement — Managing Edge Scale with Policy-Based Workload Placement
chapter_11
Section titled “chapter_11”node-book_real-world-edge-computing_chapter-11-machine-learning-workload-and-model-deployment — Machine Learning Workload and Model Deployment
chapter_12
Section titled “chapter_12”node-book_real-world-edge-computing_chapter-12-security-at-the-edge — Security at the Edge
chapter_13
Section titled “chapter_13”node-book_real-world-edge-computing_chapter-13-network-connectivity-at-the-edge — Network Connectivity at the Edge
chapter_14
Section titled “chapter_14”node-book_real-world-edge-computing_chapter-14-building-a-real-world-example-application — Building a Real-World Example Application
chapter_15
Section titled “chapter_15”node-book_real-world-edge-computing_chapter-15-troubleshooting-at-the-edge — Troubleshooting at the Edge
chapter_16
Section titled “chapter_16”node-book_real-world-edge-computing_chapter-16-follow-on-topics — Follow-On Topics
chapter_17
Section titled “chapter_17”node-book_real-world-edge-computing_chapter-17-using-the-ibm-edge-application-manager-web-ui — Using the IBM Edge Application Manager Web UI
Preface
Section titled “Preface”Edge computing is a burgeoning field with vast potential to revolutionize industries, but its implementation still poses unique challenges. Authored by industry veterans Rob High and Sanjeev Gupta, this comprehensive guide bridges the gap between theory and practice, leveraging their combined many years of experience in Edge computing and hybrid cloud mesh solutions. Equipping software developers and DevOps teams with the knowledge and skills needed to navigate the complexities of deploying Edge solutions at scale in production environments, this book explores the foundational standards and introduces key factors that may impede scaling Edge solutions.
While Edge computing draws from the successes of cloud computing, crucial distinctions separate the two. High and Gupta elucidate these distinctions, empowering you to grasp the nuanced dynamics of Edge computing ecosystems. With a focus on leveraging LF Edge Open Horizon to overcome pitfalls and optimize performance, this book will help you confidently navigate the intricacies of constructing and deploying resilient Edge solutions in real-world production settings. We will round out your understanding by highlighting the distinction between the LF Edge Open Horizon open source project and the IBM Edge Application Manager product distribution of Open Horizon.
By the end of this book, you’ll understand essential success factors for building and deploying robust Edge solutions in real-world production settings, leveraging Open Horizon for scalable Edge deployments.
You will learn how to do the following:
- Identify common challenges in Edge projects
- Utilize LF Edge Open Horizon to address project issues
- Design and build Edge software using containerization platforms
- Deploy Edge services using pattern-based and policy-based approaches
- Leverage the Model Management Service for AI/ML workload deployment
- Integrate Edge computing with enterprise network connectivity
- Implement security best practices, including workload signing and secrets management
- Enhance team productivity in Edge project management
Who this book is for
Section titled “Who this book is for”This book is for software engineers and DevOps teams aiming to optimize their Edge solutions. Whether you’re already developing Edge solutions or planning to do so, this book equips you with insights to reduce risks and enhance viability, catering to various experience levels, and offering valuable guidance on the nuances between cloud and Edge computing.
What this book covers
Section titled “What this book covers”Chapter 1, Fundamentals of Edge Computing, lays out the context and establishes the assumptions we make about its utility in commercial settings.
Chapter 2, Practicalities of Edge Computing, delves deeper into the architecture of Edge computing by focusing on the practical issues that have the potential to derail your Edge project and outlines the best practices for dealing with them.
Chapter 3, Designing and Building Edge Software, explores a sample Edge computing infrastructure, the roles and responsibilities for successful production deployments, and the best-practices architecture for Edge-native solutions.
Chapter 4, Edge Container Platforms, takes a closer look at the container platforms that are fundamental to hosting an Edge computing solution.
Chapter 5, Application Placement and Lifecycle Management, examines the practice of application placement and lifecycle management – arguably one of the most important issues in scaling a production Edge solution.
Chapter 6, Installing an Edge Agent on an Edge Node, gets your hands dirty installing an Open Horizon Management Hub and agent that are core to the autonomous management system key to production deployment.
Chapter 7, Register an Edge Node, takes you through the steps of registering your Edge node with the Open Horizon Management Hub.
Chapter 8, Using the Open Horizon CLI and API, takes a step back to provide guidance on the general use of the Open Horizon CLI and APIs.
Chapter 9, Autonomous and Flexible Management of Edge Services, dives into the details for developing and publishing an Edge service, creating a pattern, and then using that pattern to deploy your Edge service to your edge node.
Chapter 10, Managing Edge Scale with Policy-Based Workload Placement, transitions your focus to policy-based deployment – offering even greater flexibility and autonomy in deploying your solution at scale.
Chapter 11, Machine Learning Workload and Model Deployment, steps through the use of the Open Horizon Model Management System to control the deployment of your models for any AI/ML-based services that make up your Edge solution.
Chapter 12, Security at the Edge, explores the security challenges that can occur with Edge solutions, and how to leverage Open Horizon to address those concerns.
Chapter 13, Network Connectivity at the Edge, introduces the symbiotic relationship between Edge computing and network connectivity, and the emerging paradigm shift to DevSecNetOps.
Chapter 14, Building a Real-World Example Application, uses a single real-world example application to help tie together and cement the several capabilities that have been instructed in this book.
Chapter 15, Troubleshooting at the Edge, provides best practice guidance on testing and debugging production software at the Edge.
Chapter 16, Follow-On Topics, summarizes several topics that could not be covered in the scope of this book that you are encouraged to explore further on your own.
Chapter 17, Using the IBM Edge Application Manager Web UI, segues to IBM’s Edge Application Manager – product distribution of the LF Edge Open Horizon project – to detail the Web User Interface (UI) that it provides above and beyond the open source project on which it’s based.
To get the most out of this book
Section titled “To get the most out of this book”This book is geared to software practitioners who intend, or may have already started, to build and deploy production-ready Edge solutions. It is a good idea to have that solution in mind when reading this book. And, as software developers, we assume you understand the basics of writing and building software – that is, the use of common general-purpose languages, the use of the Make tool, and how to submit your software to a build pipeline.
We highly recommend reading, Edge Computing Patterns for Solution Architects by Joseph Pearson and Ashok Iyengar (ISBN 978-1805124061, Packt Publishing, Jan-2024) to gain more insight into the architecture patterns for a successful Edge computing solution.
Given their importance to production Edge solutions, we will be leveraging Docker and Linux in this book. There is little substitute for knowing Linux, but if you do not know Docker, it may be sufficient to know Podman or Kubernetes.
| Software/hardware covered in the book | Operating system requirements |
|---|---|
| Docker (or Podman or Kubernetes) | Linux |
| Make | |
| bash | |
| Linux Foundation’s LF Edge Open Horizon | |
| TensorFlow Lite (or PyTorch or OpenVino) | |
| OpenCV | |
| Python |
You will be installing the Linux Foundation LF Edge Open Horizon project from https://github.com/open-horizon. Confirm that you have access to this site.
Ideally, you will install the Open Horizon Management Hub on one machine (representing your central point of control in your enterprise or cloud data center), and the Open Horizon agent on another machine (representing your Edge device).
For the Management Hub, you will need an x86 machine with at least 4 GB of RAM and 20 GB of storage space.
For the agent (Edge device), you will need an x86, ARM, PowerPC (ppc64le), or Mac (Intel or Silicon) with a minimum of 200 MB of RAM and 400 MB of storage space – plus whatever additional space your Edge application will require on that device.
If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.
Conventions used
Section titled “Conventions used”There are a number of text conventions used throughout this book.
Code in text: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The configstate field can be in three different states.”
A block of code is set as follows:
{ "name": "", "label": "", "type": "", "defaultValue": ""}Any command-line input or output is written as follows:
hzn key create <organisation-name> <your-email-id>Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “The Agent must be run as a Container on Docker when running on macOS.”
Tips or important notes
Appear like this.
Source: