Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/config_min_swap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "oraswdb_install: make minimum required swap space a variable (and consider rounding)"
15 changes: 15 additions & 0 deletions roles/orahost_meta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Meta role used by other roles to share variable defaults.
- [orahost_meta_cv_assume_distid](#orahost_meta_cv_assume_distid)
- [orahost_meta_java_options](#orahost_meta_java_options)
- [orahost_meta_tmpdir](#orahost_meta_tmpdir)
- [orahost_min_swap_mb](#orahost_min_swap_mb)
- [role_separation](#role_separation)
- [scripts_folder](#scripts_folder)
- [sysctl_kernel_sem_force](#sysctl_kernel_sem_force)
Expand Down Expand Up @@ -371,6 +372,20 @@ orahost_meta_java_options: >-
orahost_meta_tmpdir: '{{ oracle_tmp_stage }}'
```

### orahost_min_swap_mb

Minimum amount of swap space (in MB) required for DB server.
Note: We observed ansible_memory_mb.swap.total is 1MB less than configured
swap (e.g. 16383 instead of 16384 for 16GB)

**_Type:_** integer<br />

#### Default value

```YAML
orahost_min_swap_mb: 16383
```

### role_separation

Should role separation be used for Oracle Restart/Grid-Infrastructure.
Expand Down
8 changes: 8 additions & 0 deletions roles/orahost_meta/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,11 @@ oracle_nr_bg_processes: 130
# (collections: oracle_databases, oracle_asm_instance), even if calculated values are lower than current ones
sysctl_kernel_sem_force: false
# @end

# @var orahost_min_swap_mb:description: >
# Minimum amount of swap space (in MB) required for DB server.
# Note: We observed ansible_memory_mb.swap.total is 1MB less than configured
# swap (e.g. 16383 instead of 16384 for 16GB)
# @end
# @var orahost_min_swap_mb:type: integer
orahost_min_swap_mb: 16383
2 changes: 1 addition & 1 deletion roles/oraswdb_install/tasks/19.3.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
ansible.builtin.assert:
quiet: true
that:
- ansible_memory_mb.swap.total > 16384
- ansible_memory_mb.swap.total >= {{ orahost_min_swap_mb }}
tags:
- assertswap
- molecule-notest
Expand Down
Loading