-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to set NODE_OPTIONS in sysconfig for systemd environment #36671
Comments
@VarunSrinivasa could u use the default provided
Then run |
Pinging @elastic/kibana-operations |
@mistic , |
Hi @mistic ,
May 24 12:44:19 vm-10-99-26-157 systemd[1]: Stopping Kibana...
Ex:- Environment=NODE_OPTIONS=--max-http-header-size=65555 Ex:- Environment=NODE_OPTIONS=--max-http-header-size=65555 --max-old-space-size=712 bash-4.2# systemctl status kibana -l |
@VarunSrinivasa can you try to edit the |
@mistic , Will check and update you. |
Hi @mistic I have provided the value NODE_OPTIONS=--max-http-header-size=65550 in the file /etc/sysconfig/kibana. Please find the contents of file /etc/systemd/system/kibana.service _[_Unit] [Service] [Install] Once i reload the configuration and start the kibana , I am getting below output. [_root@vm-10-99-26-157 system]# systemctl status kibana -l May 27 06:41:40 vm-10-99-26-157 systemd[1]: Started Kibana. Since there are two values 65536 and 65550 for the property--max-http-header-size .Can you please confirm which value will be used for the property --max-http-header-size? |
@VarunSrinivasa it will use the last defined value |
Hi @mistic , Thanks for the quick response will test and update you. |
Hi @mistic , |
@aggarwalShivani I believe you can just set an environment variable to the container |
Hi @mistic , I use kibana with searchguard and the authentication mode is keycloak(openid). The flow is like -
I observe that when my token's size is around 1-2KB, i am able to login to kibana. But, when the token size is larger (say 9kb) , the login fails. |
@jbudz I know you have done something in the past related to |
I want to dig into this further when I get a moment, so will reopen. For now, if you want to just make this work you can modify these values in Sorry for the terse reply will update further when I get a chance! |
@jbudz any update here? |
I think we can close this now that we have a |
of "/etc/default/kibana". This is a standards difference. rpm based distributions generally use /etc/sysconfig. In production we're reading from both, with sysconfig second to override any historical differences. Related to elastic#36671, elastic#6423
**Kibana version:6.6.1
**Elasticsearch version:6.6.1
**Server OS version: Rhel 7.6
**Browser version: 74.0.3729.157 [Chrome]
**Browser OS version: Windows 10 64 bit
**Original install method (e.g. download page, yum, from source, etc.): yum
**Describe the bug:- Not able to set the Node js property --max-http-header-size in Kibana Service file /etc/systemd/system/kibana.service
Steps to reproduce:-
In the file /etc/systemd/system/kibana.service we are setting the property and value Environment=NODE_OPTIONS=--max-old-space-size=1024 --max-http-header-size=65550. But after restarting kibana, The values for the properties --max-old-space-size, --max-http-header-size are not reflecting.
-bash-4.2# ps -eaf|grep kibana
kibana 5422 1 0 10:15 ? 00:00:06 /usr/share/kibana/bin/../node/bin/node --no-warnings --max-http-header-size=65536 /usr/share/kibana/bin/../src/cli -c /etc/kibana/kibana.yml
root 6026 4223 0 10:27 pts/1 00:00:00 grep --color=auto kibana
From the above output it is clear that kibana is not reading the file /etc/systemd/system/kibana.service
Also we tried to set using direct environment variables, But kibana is not taking the environment variables.
Ex:- export NODE_OPTIONS=--max-old-space-size=1024 --max-http-header-size=65550
Then restart kibana, Once Kibana comes up changes are not reflecting.
Same thing we tried in K8s environment , But we are not sure whether values are getting reflected.
Ex:- env:
- name: "NODE_OPTIONS"
value: "--max-http-header-size=10000000"
Once Container is restarted, Changes are not reflecting.
The text was updated successfully, but these errors were encountered: