Unix Articles

Page 6 of 6

How to use ansible for setting up production elasticsearch servers with cluster

Samual Sam
Samual Sam
Updated on 18-Oct-2019 453 Views

In this article, we will learn how to use Anisble to configure and install production Elastic Search cluster on CentOS7 which ensures that the Elasticsearch nodes will be secure from outside network .we will use VPN services to connect to the clusters.Elasticsearch is a very popular open source search, server which can be used for real-time distributed search and analysis of the data for better performance, stability and for scalability we need the Elasticsearch to be deployed across multiple servers as a cluster.PrerequisitesWe need a minimum of three CentOS 7 server environments with private networking since the Elasticsearch cluster needed ...

Read More

Init process on UNIX and Linux systems

Arnab Chakraborty
Arnab Chakraborty
Updated on 11-Oct-2019 8K+ Views

Init is the parent of all processes, executed by the kernel during the booting of a system. Its principle role is to create processes from a script stored in the file /etc/inittab. It usually has entries which cause init to spawn gettys on each line that users can log in. It controls autonomous processes required by any particular system.After reading this file, how the system should be set up in each runlevel is determined by init and also set default runlevel. Init starts all background process after setting default runlevel for the system.RunlevelsRunlevel, a software configuration of the system which allows ...

Read More

What are Named Pipes or FIFO in Linux/Unix systems?

Arnab Chakraborty
Arnab Chakraborty
Updated on 11-Oct-2019 3K+ Views

Pipes were meant for communication between related processes. We Cannot use pipes for unrelated process communication. Then to achieve unrelated processes communication, the simple answer is Named Pipes. Even though this works for related processes, it gives no meaning to use the named pipes for related process communication.Unlike pipe, we can use single named pipe that can be used for two-way communication (communication between the server and the client, plus the client and the server at the same time) as Named Pipe supports bi-directional communication.Another name for named pipe is FIFO (First-In-First-Out). Let us see the system call (mknod()) to ...

Read More

Windows Anonymous Pipe

Arnab Chakraborty
Arnab Chakraborty
Updated on 11-Oct-2019 1K+ Views

Windows anonymous pipes are actually Ordinary pipes, and they behave similarly to their UNIX counterparts: they are unidirectional and employ parent-child relationships between the communicating processes. In addition, reading and writing to the pipe can be accomplished with the ordinary ReadFile() and WriteFile() functions. The Windows API use CreatePipe() function for creating pipes, which is passed four parameters. The parameters provide separate handles forreading andwriting to the pipeAn instance of the STARTUPINFO structure, used to specify that the child process is to inherit the handles of the pipe.the size (in Bytes) of the pipe may be specified.Windows requires the programmer ...

Read More

What is GRUB in Linux?

Ricky Barnes
Ricky Barnes
Updated on 30-Jul-2019 11K+ Views

The GRUB (Grand Unified Bootloader) is a bootloader available from the GNU project. A bootloader is very important as it is impossible to start an operating system without it. It is the first program which starts when the program is switched on. The bootloader transfers the control to the operating system kernel. GRUB Features GRUB is the default bootloader for many of the Linux distributions. This is because it is better than many of the previous versions of the bootloaders. Some of its features are: GRUB supports LBA (Logical Block Addressing Mode) which puts the addressing conversion used ...

Read More

What is the difference between time.clock() and time.time()?

Rajendra Dharmkar
Rajendra Dharmkar
Updated on 30-Jul-2019 686 Views

The function time.time() returns the time in seconds since the epoch, i.e., the point where the time starts.For Unix, the epoch is January 1, 1970. For Windows, the epoch is January 1, 1601.time.time() is used for benchmarking on Windows. time.time() behaves the same on both UNIX and Windows but time.clock() has different meanings.On UNIX, time.clock returns the current processor time expressed in seconds, i.e., the CPU time it takes to execute the current thread so far. While on Windows, it returns the wall-clock time expressed in seconds elapsed since the first call to this function, based on the Win32 function ...

Read More
Showing 51–56 of 56 articles
« Prev 1 2 3 4 5 6 Next »
Advertisements