Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
communication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
communication
Commits
6b97c423
Commit
6b97c423
authored
4 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
dovecot: add options to finetune imap resource usage
parent
1488eeab
No related branches found
No related tags found
1 merge request
!16
Minimal Viable FSMPI Deployment
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
dovecot/defaults/main.yml
+4
-0
4 additions, 0 deletions
dovecot/defaults/main.yml
dovecot/templates/conf.d/10-master.conf.j2
+10
-2
10 additions, 2 deletions
dovecot/templates/conf.d/10-master.conf.j2
dovecot/templates/conf.d/20-imap.conf.j2
+3
-5
3 additions, 5 deletions
dovecot/templates/conf.d/20-imap.conf.j2
with
17 additions
and
7 deletions
dovecot/defaults/main.yml
+
4
−
0
View file @
6b97c423
...
...
@@ -35,6 +35,10 @@ dovecot_sieve: 'file:~/sieve;active=~/.dovecot.sieve'
# These variables were introduced for compatibility to a certain setup.
# They may disappear without prior notice and/or may not work as expected.
dovecot_process_limit
:
100
dovecot_client_limit
:
1000
dovecot_imap_idle_interval
:
'
29
mins'
dovecot_imap_max_userip_connections
:
40
dovecot_lda_mailbox_autocreate
:
false
dovecot_lda_mailbox_autosubscribe
:
false
dovecot_auth_realms
:
[]
...
...
This diff is collapsed.
Click to expand it.
dovecot/templates/conf.d/10-master.conf.j2
+
10
−
2
View file @
6b97c423
#
default_process_limit =
100
#
default_client_limit =
1000
default_process_limit =
{{ dovecot_process_limit }}
default_client_limit =
{{ dovecot_client_limit }}
# Default VSZ (virtual memory size) limit for service processes. This is mainly
# intended to catch and kill processes that leak memory before they eat up
...
...
@@ -99,7 +99,15 @@ service auth {
# user = $default_internal_user
user = dovecot
group = dovecot
{% if dovecot_client_limit != 1000 %}
client_limit = {{ dovecot_client_limit * 2 }}
{% endif %}
}
{% if dovecot_client_limit != 1000 %}
service anvil {
client_limit = {{ dovecot_client_limit + 500 }}
}
{% endif %}
service auth-worker {
# Auth worker process is run as root by default, so that it can access
...
...
This diff is collapsed.
Click to expand it.
dovecot/templates/conf.d/20-imap.conf.j2
+
3
−
5
View file @
6b97c423
...
...
@@ -39,8 +39,7 @@
# How long to wait between "OK Still here" notifications when client is
# IDLEing.
#imap_idle_notify_interval = 2 mins
imap_idle_notify_interval = 29 mins
imap_idle_notify_interval = {{ dovecot_imap_idle_interval }}
# ID field names and values to send to clients. Using * as the value makes
# Dovecot use the default value. The following fields have default values
...
...
@@ -92,12 +91,11 @@ imap_idle_notify_interval = 29 mins
protocol imap {
# Space separated list of plugins to load (default is global mail_plugins).
#
mail_plugins = $mail_plugins
mail_plugins = $mail_plugins
# Maximum number of IMAP connections allowed for a user from each IP address.
# NOTE: The username is compared case-sensitively.
#mail_max_userip_connections = 10
mail_max_userip_connections = 40
mail_max_userip_connections = {{ dovecot_imap_max_userip_connections }}
}
{% if dovecot_content_filter %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment