Commit 5bb502a
authored
Make CLI Commands plugable, fix fd leak when logging exceptions, use black for code formating (someengineering#28)
* Utility functions for getting process information
* Add process stats to CLI command
* Process info cleanup
* Spawn new processes instead of forking them in AWS plugin reducing memory consumption
* Add nofile and nproc limits to procinfo output
* Increase nproc if applicable
* Add command to close open fd from cli
* Improve debug_close_fd CLI command
* black -l 88 -t py38
* Allow specifying fd that does not exist in debug_close_fd cli cmd
* Create deepcopies of everything send to object log fixing an fd leak
* Return correct rtdname
* Update AWS plugin readme and performance information
* Make CLI commands plugable
* Update documentation with details about CLI plugins
* max-line-length=120
* Ignore flake8 E203
* Make cloudkeeper compatible with Windows and Unixes other than Linux
* Move debug_* CLI commands into external plugin
* Add linux-headers to Dockerfile for psutil installation
* Add cli history function
* Add black checks to tox.ini1 parent f573fb3 commit 5bb502a
File tree
107 files changed
+6423
-3339
lines changed- cloudkeeper
- cloudkeeper
- test
- plugins
- aws
- cloudkeeper_plugin_aws
- backup
- cloudkeeper_plugin_backup
- cleanup_aws_loadbalancers
- cloudkeeper_plugin_cleanup_aws_loadbalancers
- test
- cleanup_aws_vpcs
- cloudkeeper_plugin_cleanup_aws_vpcs
- cleanup_expired
- cloudkeeper_plugin_cleanup_expired
- cleanup_untagged
- cloudkeeper_plugin_cleanup_untagged
- cleanup_volumes
- cloudkeeper_plugin_cleanup_volumes
- test
- cli_debug
- cloudkeeper_plugin_cli_debug
- test
- example_cli
- cloudkeeper_plugin_example_cli
- test
- example_collector
- cloudkeeper_plugin_example_collector
- example_persistent
- cloudkeeper_plugin_example_persistent
- logdump
- cloudkeeper_plugin_logdump
- metrics_age_range
- cloudkeeper_plugin_metrics_age_range
- onelogin
- cloudkeeper_plugin_onelogin
- test
- protect_snowflakes
- cloudkeeper_plugin_protect_snowflakes
- remote_event_callback
- cloudkeeper_plugin_remote_event_callback
- remote
- cloudkeeper_plugin_remote
- report_cleanups
- cloudkeeper_plugin_report_cleanups
- test
- slack
- cloudkeeper_plugin_slack
- tag_aws_ctime
- cloudkeeper_plugin_tag_aws_ctime
- tagvalidator
- cloudkeeper_plugin_tagvalidator
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
107 files changed
+6423
-3339
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | | - | |
147 | 149 | | |
148 | 150 | | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
169 | | - | |
170 | | - | |
| 173 | + | |
| 174 | + | |
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
| |||
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
240 | | - | |
| 247 | + | |
241 | 248 | | |
242 | 249 | | |
243 | 250 | | |
| |||
291 | 298 | | |
292 | 299 | | |
293 | 300 | | |
294 | | - | |
| 301 | + | |
295 | 302 | | |
296 | 303 | | |
297 | 304 | | |
298 | | - | |
299 | | - | |
300 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
304 | | - | |
| 311 | + | |
305 | 312 | | |
306 | 313 | | |
307 | 314 | | |
| |||
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| 322 | + | |
315 | 323 | | |
316 | 324 | | |
317 | 325 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | | - | |
6 | 3 | | |
7 | | - | |
| 4 | + | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
| 15 | + | |
18 | 16 | | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 27 | | |
33 | 28 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 29 | + | |
41 | 30 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 31 | | |
46 | 32 | | |
47 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
48 | 43 | | |
49 | 44 | | |
50 | 45 | | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
| |||
64 | 60 | | |
65 | 61 | | |
66 | 62 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 63 | | |
75 | | - | |
| 64 | + | |
76 | 65 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 66 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 67 | + | |
| 68 | + | |
89 | 69 | | |
90 | 70 | | |
91 | 71 | | |
| |||
115 | 95 | | |
116 | 96 | | |
117 | 97 | | |
118 | | - | |
| 98 | + | |
119 | 99 | | |
120 | 100 | | |
121 | 101 | | |
122 | 102 | | |
123 | | - | |
| 103 | + | |
124 | 104 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
128 | 108 | | |
129 | 109 | | |
130 | 110 | | |
| |||
135 | 115 | | |
136 | 116 | | |
137 | 117 | | |
138 | | - | |
| 118 | + | |
| 119 | + | |
139 | 120 | | |
140 | 121 | | |
141 | 122 | | |
142 | 123 | | |
143 | | - | |
144 | | - | |
| 124 | + | |
| 125 | + | |
145 | 126 | | |
146 | 127 | | |
147 | | - | |
148 | | - | |
| 128 | + | |
149 | 129 | | |
150 | 130 | | |
151 | | - | |
| 131 | + | |
152 | 132 | | |
153 | 133 | | |
154 | 134 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
159 | 142 | | |
160 | 143 | | |
161 | 144 | | |
162 | 145 | | |
163 | 146 | | |
164 | 147 | | |
165 | 148 | | |
166 | | - | |
167 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
168 | 152 | | |
169 | 153 | | |
170 | 154 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 155 | + | |
207 | 156 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 2 | | |
6 | 3 | | |
7 | 4 | | |
| |||
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
0 commit comments