This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| nginx.conf: | | |
| user nginx; | |
| worker_processes 3; | |
| error_log /var/log/nginx/error.log; | |
| events { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package workerpool | |
| import ( | |
| "context" | |
| ) | |
| /* | |
| * Worker Pool for executing heavy tasks to avoid OOM error from OS | |
| * Usage example: | |
| * pool := workerpool.NewPool(3) // Number of workers should be adjusted appropriately to your services |
OlderNewer