Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Salt Cookbook
  • Toc
  • feedback
Salt Cookbook

Salt Cookbook

By : Anirban Saha
3.5 (2)
close
Salt Cookbook

Salt Cookbook

3.5 (2)
By: Anirban Saha

Overview of this book

If you are a professional associated with system and infrastructure management, looking at automated infrastructure and deployments, then this book is for you. No prior experience of Salt is required.
Table of Contents (13 chapters)
close
12
Index

Dealing with too many open files

In this recipe, you will learn how to resolve a situation where the number of open files exceeds the maximum file limit set in the operating system.

How to do it...

  1. On trying to add a new minion to the master, the following error may be noticed in the log:
    [salt.master    ][INFO    ] Starting Salt worker process 38
    Too many open files
    sock != -1 (tcp_listener.cpp:335)
    
  2. Check the limit of maximum open files in the system:
    [root@salt-master ~]# ulimit -n
    1024
    
  3. Run the salt-master daemon in debug mode:
    [root@salt-master ~]# salt-master -l debug
    .
    .
    [INFO    ] salt-master is starting as user 'root'
    [INFO    ] Current values for max open files soft/hard setting: 1024/4096
    [INFO    ] The value for the 'max_open_files' setting, 100000, is higher than what the user running salt is allowed to raise to, 4096. Defaulting to 4096.
    [INFO    ] Raising max open files value to 4096
    [INFO    ] New values for max open files soft/hard values: 4096/4096
    
  4. Edit the...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete