Comments (8)
Easy to add its option to only Arm64 CentOS package?
from fluent-package-builder.
@rluisr it may be that jemalloc is not compiled appropriately on aarch64 (not sure yet).
As a workaround,
just comment out #Environment=LD_PRELOAD=/opt/td-agent/lib/libjemalloc.so
in td-agent.servce
then execute systemctl daemon-reload && systemctl start td-agent works as expected. (even though jemalloc can't be enabled 😭 )
$ cat /lib/systemd/system/td-agent.service
[Unit]
Description=td-agent: Fluentd based data collector for Treasure Data
Documentation=https://docs.treasuredata.com/articles/td-agent
After=network-online.target
Wants=network-online.target
[Service]
User=td-agent
Group=td-agent
LimitNOFILE=65536
#Environment=LD_PRELOAD=/opt/td-agent/lib/libjemalloc.so
Environment=GEM_HOME=/opt/td-agent/lib/ruby/gems/2.7.0/
Environment=GEM_PATH=/opt/td-agent/lib/ruby/gems/2.7.0/
Environment=FLUENT_CONF=/etc/td-agent/td-agent.conf
Environment=FLUENT_PLUGIN=/etc/td-agent/plugin
Environment=FLUENT_SOCKET=/var/run/td-agent/td-agent.sock
Environment=TD_AGENT_LOG_FILE=/var/log/td-agent/td-agent.log
Environment=TD_AGENT_OPTIONS=
EnvironmentFile=-/etc/sysconfig/td-agent
PIDFile=/var/run/td-agent/td-agent.pid
RuntimeDirectory=td-agent
Type=forking
# XXX: Fix fluentd executables path
ExecStart=/opt/td-agent/bin/fluentd --log $TD_AGENT_LOG_FILE --daemon /var/run/td-agent/td-agent.pid $TD_AGENT_OPTIONS
ExecStop=/bin/kill -TERM ${MAINPID}
ExecReload=/bin/kill -HUP ${MAINPID}
Restart=always
TimeoutStopSec=120
[Install]
WantedBy=multi-user.target
from fluent-package-builder.
I confirmed no problem on m6g with amazon linux 2 and ubuntu bionic .
I'm now trying to check centos 8 with non-AWS environment.
from fluent-package-builder.
@kenhys working perfectly! thanks!
@repeatedly perhaps, AL2 is important?
from fluent-package-builder.
AL2 is important?
Yes.
The problem is different PAGE_SIZE on Arm64 with CentOS.
Arm64 with Ubuntu/AL2 and x86_64 with all OSes use 4096 page size but Arm64 with CentOS uses 65536 page size.
from fluent-package-builder.
FYI: --with-lg-page configure option may be able to control page size when building jemalloc
from fluent-package-builder.
@repeatedly I'll check it.
from fluent-package-builder.
The cause is that the difference of the kernel between build time vs run time.
When the package is built using qemu:
rake yum:build YUM_TARGETS=centos-8-aarch64
non-default kernel is used:
$ uname -a
Linux 5b7a1d11123f 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
$ getconf PAGESIZE
4096
FYI: --with-lg-page configure option may be able to control page size when building jemalloc
It should fix this issue.
refs:
from fluent-package-builder.
Related Issues (20)
- Improve downloading artifiacts procedure HOT 4
- td-agent not starting as Windows service if installed in directory containing spaces, e.g. "Program Files" HOT 1
- .package_note-fluent-package-5.0.1-1.amzn2023.x86_64.ld is no exist HOT 4
- some CI fails because of vagrant shared folder configuration HOT 3
- rpm: User is removed at uninstalling, which can cause error at reinstalling
- Add option to choice whether it enables to start fluentd service or not HOT 2
- Keep fluentdwinsvc commandline option during upgrading HOT 1
- msi: Env var PATH for Fluent Package Prompt are specified in a not good way HOT 1
- Vulnerabilities in yajl-ruby-1.4.1 & fluentd-1.14.6 package of fluent-plugin-td-1.2.0 HOT 1
- Enabled state of systemd service isn't migrated on upgrading from td-agent v4 to fluent-package v5
- Prevent accidental duplicate launching HOT 13
- Use ruby 3.2.3 HOT 3
- Windows: Slow service start (fluent-package) HOT 2
- Windows: a garbage character is sometimes placed at the end of 'fluentdopt' registry value (fluent-package) HOT 2
- Windows: td-agent 4.5.2 Too many open files HOT 1
- nokogiri-1.15.3 in td-agent v4.5.3 has vulnerability(CVE-2019-18425) HOT 1
- Install win32-service gem from a forked repository HOT 2
- HIGH CVE's on openssl-3.1.0 CVE-2023-0464, CVE-2023-4807, CVE-2023-5363 HOT 2
- fluent-package: msi: migration process wrongly runs every update in env once updated from v4 HOT 1
- MSI: specify custom install path over commandline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-package-builder.