Book Image

Hands-On Linux for Architects

By : Denis Salamanca, Esteban Flores
Book Image

Hands-On Linux for Architects

By: Denis Salamanca, Esteban Flores

Overview of this book

It is very important to understand the ?exibility of an infrastructure when designing an efficient environment. In this book, you will cover everything from Linux components and functionalities through to hardware and software support, which will help you to implement and tune effective Linux-based solutions. This book gets started with an overview of Linux design methodology. Next, you will focus on the core concepts of designing a solution. As you progress, you will gain insights into the kinds of decisions you need to make when deploying a high-performance solution using Gluster File System (GlusterFS). In the next set of chapters, the book will guide you through the technique of using Kubernetes as an orchestrator for deploying and managing containerized applications. In addition to this, you will learn how to apply and configure Kubernetes for your NGINX application. You’ll then learn how to implement an ELK stack, which is composed of Elasticsearch, Logstash, and Kibana. In the concluding chapters, you will focus on installing and configuring a Saltstack solution to manage different Linux distributions, and explore a variety of design best practices. By the end of this book, you will be well-versed with designing a high-performing computing environment for complex applications to run on. By the end of the book, you will have delved inside the most detailed technical conditions of designing a solution, and you will have also dissected every aspect in detail in order to implement and tune open source Linux-based solutions
Table of Contents (22 chapters)
Free Chapter
1
Section 1: High-Performance Storage Solutions with GlusterFS
7
Section 2: High-Availablility Nginx Web Application Using Kubernetes
12
Section 3: Elastic Stack
16
Section 4: System Management Using Saltstack

Installing Logstash and Kibana

With the Elasticsearch cluster up and running, we can now go ahead and install Logstash and Kibana.

The repository that was used in the previous steps is the same for the remaining components. So, the same process that was used before to add the repository should be applied to the Logstash and Kibana node.

This is a summary, the same process has been explored before:

  1. Add the repository to /etc/yum.repos.d/elastic.repo
  2. Update the yum cache to sudo yum makecache
  3. Install Logstash and Kibana using sudo yum install logstash kibana
  4. Initialize the disk for /var/lib/logstash and sudo parted /dev/sdX mklabel gpt
  5. Create the sudo parted /dev/sdX mkpart xfs 0GB 32GB partition (note that this is a 32 GB disk)
  6. Create the sudo mkfs.xfs /dev/sdX1 filesystem
  7. Update fstab
  8. Update the sudo chown logstash: /var/lib/logstash directory permissions

The Logstash systemd...