mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Atlassian JVM sizing: cast memory vars to int before floor-division
Apply |int to TOTAL_MB and dependent values to prevent 'unsupported operand type(s) for //' during templating in Confluence and Jira roles. Context: discussion on 2025-09-02 — https://chatgpt.com/share/68b6d386-4490-800f-9bad-aa7be1571ebe
This commit is contained in:
		| @@ -35,7 +35,7 @@ JIRA_CUSTOM_IMAGE:            "{{ JIRA_IMAGE }}_custom" | ||||
|  | ||||
| ## Performance (auto-derive from host memory) | ||||
| JIRA_TOTAL_MB:                "{{ ansible_memtotal_mb | int }}" | ||||
| JIRA_JVM_MAX_MB:              "{{ [ (JIRA_TOTAL_MB // 2), 12288 ] | min }}" | ||||
| JIRA_JVM_MIN_MB:              "{{ [ (JIRA_TOTAL_MB // 4), JIRA_JVM_MAX_MB ] | min }}" | ||||
| JIRA_JVM_MAX_MB:              "{{ [ (JIRA_TOTAL_MB | int // 2), 12288 ] | min }}" | ||||
| JIRA_JVM_MIN_MB:              "{{ [ (JIRA_TOTAL_MB | int // 4), (JIRA_JVM_MAX_MB | int) ] | min }}" | ||||
| JIRA_JVM_MIN:                 "{{ JIRA_JVM_MIN_MB }}m" | ||||
| JIRA_JVM_MAX:                 "{{ JIRA_JVM_MAX_MB }}m" | ||||
		Reference in New Issue
	
	Block a user