Commit Graph

24226 Commits

Author SHA1 Message Date
Thomas S Hatch
863b7c1b10 Merge pull request #9378 from garethgreenaway/develop
Support for inotify cron
2013-12-20 11:47:44 -08:00
Thomas S Hatch
f2a8587940 Merge pull request #9377 from terminalmage/issue9363
Full rewrite of memcached state and execution module
2013-12-20 11:44:36 -08:00
Gareth J. Greenaway
76f63a057a Merge remote-tracking branch 'upstream/develop' into develop 2013-12-20 11:42:50 -08:00
Gareth J. Greenaway
6b494ab1b8 Initially adding support for inotify cron to Salt. 2013-12-20 11:40:43 -08:00
Erik Johnson
180699ee7d Hide alias functions from docs 2013-12-20 13:40:06 -06:00
Erik Johnson
570cef8f34 Rewrite memcached state/module 2013-12-20 13:39:37 -06:00
Thomas S Hatch
f4a4378292 Clean up dockerio state docs
@kiorky, did I miss anything? Also we want the docs to never
be in first person, still need to clean this up.
2013-12-20 12:32:14 -07:00
Seth House
eee383f8d3 Merge pull request #9376 from jacksontj/develop
Move the check_max_open_files into loop_interval.
2013-12-20 11:29:16 -08:00
Thomas Jackson
ff64040edc Move the check_max_open_files into loop_interval.
Since check_max_open_files has no bearing on wether we accept the minion or not, there is no reason to list the directory on every auth call. With this mechanism it is a "fixed cost" since it will run at loop_interval instead of on each auth call
2013-12-20 11:19:02 -08:00
Seth House
a3e3b89cb8 Merge pull request #9373 from MTecknology/develop
Added reactor documentation
2013-12-20 11:10:27 -08:00
Mike Place
cdb1df6a29 Merge pull request #9374 from SaveTheRbtz/develop
Do not waste CPU cycles on stat(2) on each _auth
2013-12-20 11:03:30 -08:00
Michael Lustfield
e9f500bcfe Made two blocks into code blocks. 2013-12-20 12:40:13 -06:00
Michael Lustfield
66286c8a86 Added example for using the reactor system. 2013-12-20 12:26:25 -06:00
Michael Lustfield
8569a84f1c Added information about eventlisten.py 2013-12-20 12:25:29 -06:00
Seth House
59babc15e8 Merge pull request #9343 from bigkraig/develop
Added a defaults module that allows a formula to contain default values for pillar data
2013-12-20 09:56:20 -08:00
David Boucha
09ccb83e6f Merge pull request #9371 from thematthopkins/powershell_permissions_fix
Change Powershell command to trust all scripts run by salt
2013-12-20 08:56:15 -08:00
Thomas S Hatch
ca1aa3eb79 Merge pull request #9294 from westurner/dockerio_docs_wip
dockerio module: docs syntax and formatting
2013-12-20 08:47:48 -08:00
Thomas S Hatch
b3ddce56dc Merge pull request #9365 from whiteinge/test-eauth-token
Add integrations tests for master_call eauth & token for RunnerClient and WheelClient
2013-12-20 08:46:29 -08:00
Thomas S Hatch
d8465f5d33 Merge pull request #9364 from kenatbasis/fix_typo_copyfile
Error message in copyfile now uses dest and not source
2013-12-20 08:44:38 -08:00
Thomas S Hatch
1b5c648a0b Merge pull request #9360 from basepi/sockdir8365
Check for, and attempt to create, SOCK_DIR in minion tune_in, Fix #8365
2013-12-20 08:44:09 -08:00
Thomas S Hatch
9251d6f7c8 Merge pull request #9358 from basepi/failedtoupdate9348
Fix language for "failed to update" packages, Fix #9348
2013-12-20 08:43:45 -08:00
Mike Place
4176354820 Pylint fixes for regex errors. 2013-12-20 09:42:15 -07:00
Mike Place
40ecf088f2 Work on salt.utils unit testing. 2013-12-20 08:34:33 -07:00
Matthew Hopkins
ef4f0ea42a Change Powershell command to trust all scripts run by salt 2013-12-20 09:02:44 -05:00
Joseph Hall
446ad2ca98 Merge pull request #9369 from s0undt3ch/issues/9359-ssh-command-log
Log the `salt-ssh` command being executed
2013-12-20 04:39:09 -08:00
Pedro Algarvio
74bee98cef White-space lint fix. 2013-12-20 10:01:50 +00:00
Pedro Algarvio
08fcb05715 Log the salt-ssh command being executed. Fixes #9359.
If a password is being used, it's replaced by a string to omit it from the logged message.
2013-12-20 09:56:35 +00:00
Pedro Algarvio
6f14fa111c Merge pull request #9368 from damiencaselli/develop
Fix rabbitmq_user code block tpyo
2013-12-20 01:44:31 -08:00
Alexey Ivanov
887017fa0a
Do not waste CPU cycles on stat(2) on each _auth
Currently servers that handle many thousands of minions spend measurable time
doing only stat(2) calls.

In strace it looks like::

     0.000093 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=118, ...}) = 0
     0.000236 open("/etc/salt/pki/master/minions", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 154
     0.011412 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000102 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     ...many thousands lines...
     0.000064 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000062 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=796, ...}) = 0
     0.000485 stat("/export/apps/salt/log/master", {st_mode=S_IFREG|0644, st_size=37769598988, ...}) = 0
     0.000065 stat("/export/apps/salt/log/master", {st_mode=S_IFREG|0644, st_size=37769598988, ...}) = 0
     0.000184 stat("/etc/salt/pki/master/minions_rejected/hostXXXX.linkedin.com", 0x7fff28209f40) = -1 ENOENT (No such file or directory)
     0.000071 stat("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", {st_mode=S_IFREG|0644, st_size=800, ...}) = 0
     0.000074 open("/etc/salt/pki/master/minions/hostXXXX.linkedin.com", O_RDONLY) = 154

Happens that on each _auth() call salt is counting files in pki/master/minions
and checks whenever those are regular files by applying os.path.isfile()
function to each which considerably slows things down.

This patch removes isfile() call that effectively makes check_max_open_files()
check less precise (but since it's already subject to external race conditions
like creation/removal of files by another process it should be OK) in exchange
for making it much faster.

PS. Note that calling salt.utils.verify.check_max_open_files() on each _auth is
not really efficient, it probably should be done periodically in a background
thread.

Sponsored by: LinkedIn
Signed-off-by: Alexey Ivanov <SaveTheRbtz@GMail.com>
2013-12-20 01:43:14 -08:00
Damien Caselli
5d6fe86f12 Fix rabbitmq_user code block tpyo 2013-12-20 10:07:10 +01:00
Seth House
26edc398f7 Merge pull request #9367 from whiteinge/docs-client-interfaces
Document Salt's client interfaces (more better)
2013-12-19 22:03:26 -08:00
Seth House
6f22ac72a1 Fleshed out docs for each method in the various *Client() interfaces 2013-12-19 22:57:56 -07:00
Seth House
288311f732 Renamed Wheel to WheelClient; added backward-compat alias 2013-12-19 22:49:22 -07:00
Seth House
09cbaa188d Added warning that APIClient() is not yet public 2013-12-19 21:48:08 -07:00
Seth House
79ad988fef Fleshed out the Python API docs 2013-12-19 21:40:43 -07:00
Seth House
f051ad477c Added CloudClient to the Python API docs 2013-12-19 21:40:34 -07:00
Seth House
d6c4584bf2 Added integration tests for RunnerClient's master_call 2013-12-19 21:07:46 -07:00
Seth House
6f4cabf99c Added wheel test for testing token authentication 2013-12-19 21:07:46 -07:00
Seth House
78f4d77681 Added helper function to easily create directories 2013-12-19 21:07:46 -07:00
Ken Jung
180a9c5afc Error message in copyfile now uses dest and not source 2013-12-19 17:38:25 -08:00
Pedro Algarvio
27aadbf657 Merge pull request #9361 from basepi/logstashquiet
Quiet the logstash handler loading message
2013-12-19 17:01:30 -08:00
Joseph Hall
67a8a9aacb Merge pull request #9362 from techhat/clouddocs
Removing API docs, because they were really only meant for Halite
2013-12-19 16:48:37 -08:00
Joseph Hall
a868cc0d71 Removing API docs, because they were really only meant for Halite 2013-12-19 17:47:34 -07:00
Colton Myers
627d2bf32a Quiet the logstash handler loading message
@s0undt3ch FYI.  If you think this is a bad change, I'd be happy to
discuss it with you, but 99% of salt users don't use that handler (as
far as I know) and it's just garbage in the debug log.
2013-12-19 16:32:25 -07:00
Colton Myers
82539c74e0 Check for, and attempt to create, SOCK_DIR in minion tune_in, Fix #8365 2013-12-19 16:27:58 -07:00
Colton Myers
99ad03ca99 Merge pull request #9357 from techhat/clouddocs
Add doc about using Salt Cloud from Salt
2013-12-19 14:37:34 -08:00
Colton Myers
4574feb848 Fix language for "failed to update" packages, Fix #9348
The "All" was quite misleading
2013-12-19 15:36:06 -07:00
Joseph Hall
d70690dbcb Add doc about using Salt Cloud from Salt 2013-12-19 15:35:48 -07:00
Colton Myers
13ba89b924 Fix a spacing issue in pkg.py 2013-12-19 15:35:48 -07:00
Thomas S Hatch
26a3eb1ec8 remove test for not yet covered case 2013-12-19 14:27:40 -07:00