Compare commits

..
Author SHA1 Message Date
Josh Patterson 802712f4d1 Say whole number in the lsheap and esheap validation message
The regex only accepts whole numbers, so 1.5g is rejected; the message
now says so.
2026-12-03 16:35:11 -05:00
Josh Patterson 3fdb2fbad8 Require a unit on lsheap and esheap in SOC Configuration
Without forcedType or regex, SOC accepted a unitless heap such as 500.
AlignBestGuess stored it as a YAML integer, which rendered -Xms500
(bytes) and restart-looped the service. On the next save, AlignType
then tried ParseInt on the corrected 500m and rejected it.

forcedType: string makes SOC store the value as a string whatever the
stored type, so an existing integer can be corrected. The regex blocks
unitless values in the UI. k, m and g are allowed (either case), matching
what the bundled JDKs accept for -Xms/-Xmx; the Logstash JVM options
parser passes them through unchanged. Heaps too small to start fail in
the JVM whatever the unit, so the regex doesn't check size.
2026-12-03 13:47:42 -05:00
3 changed files with 12 additions and 5 deletions

No files matched your search

+4 -1
View File
@@ -17,7 +17,10 @@ elasticsearch:
global: True
advanced: True
esheap:
description: Specify the memory heap size in (m)egabytes for Elasticsearch.
description: Heap size to use for Elasticsearch, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 600m.
forcedType: string
regex: ^[1-9][0-9]*[kKmMgG]$
regexFailureMessage: Must be a whole number followed by k, m or g, such as 600m.
helpLink: elasticsearch
index_clean:
description: Determines if indices should be considered for deletion by available disk space in the cluster. Otherwise, data is retained by the configured lifecycle settings. This setting only applies to EVAL, STANDALONE, and HEAVY NODE installations. Other installations use lifecycle settings only.
+5 -2
View File
@@ -403,8 +403,11 @@ logstash:
custom8: *pipeline_settings
custom9: *pipeline_settings
settings:
lsheap:
description: Heap size to use for logstash
lsheap:
description: Heap size to use for Logstash, as a number followed by k (kilobytes), m (megabytes) or g (gigabytes), such as 500m.
forcedType: string
regex: ^[1-9][0-9]*[kKmMgG]$
regexFailureMessage: Must be a whole number followed by k, m or g, such as 500m.
helpLink: logstash
global: False
config:
+3 -2
View File
@@ -34,8 +34,6 @@ http {
server_tokens off;
ssl_ecdh_curve X25519MLKEM768:SecP256r1MLKEM768:SecP384r1MLKEM1024/X25519:secp521r1:secp384r1;
include /etc/nginx/mime.types;
default_type application/octet-stream;
@@ -86,6 +84,7 @@ http {
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256:TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256:TLS_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_CCM:TLS_RSA_WITH_ARIA_256_GCM_SHA384:TLS_RSA_WITH_AES_128_GCM_SHA256:TLS_RSA_WITH_AES_128_CCM:TLS_RSA_WITH_ARIA_128_GCM_SHA256;
ssl_ecdh_curve X25519:secp521r1:secp384r1;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.2 TLSv1.3;
}
@@ -112,6 +111,7 @@ http {
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256:TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256:TLS_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_CCM:TLS_RSA_WITH_ARIA_256_GCM_SHA384:TLS_RSA_WITH_AES_128_GCM_SHA256:TLS_RSA_WITH_AES_128_CCM:TLS_RSA_WITH_ARIA_128_GCM_SHA256;
ssl_ecdh_curve X25519:secp521r1:secp384r1;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.2 TLSv1.3;
location / {
@@ -145,6 +145,7 @@ http {
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 10m;
ssl_ciphers TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256:TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256:TLS_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_CCM:TLS_RSA_WITH_ARIA_256_GCM_SHA384:TLS_RSA_WITH_AES_128_GCM_SHA256:TLS_RSA_WITH_AES_128_CCM:TLS_RSA_WITH_ARIA_128_GCM_SHA256;
ssl_ecdh_curve X25519:secp521r1:secp384r1;
ssl_prefer_server_ciphers on;
ssl_protocols TLSv1.2 TLSv1.3;