diff --git a/keentuned-1.0.1.tar.gz b/keentuned-1.0.1.tar.gz deleted file mode 100644 index b6dcf40a9a5ccf43140b07bb3a57646fe25380fc..0000000000000000000000000000000000000000 Binary files a/keentuned-1.0.1.tar.gz and /dev/null differ diff --git a/keentuned-2.3.0-2.tar.gz b/keentuned-2.3.0-2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4804cad64c7fc745025104598be551b92815c26f Binary files /dev/null and b/keentuned-2.3.0-2.tar.gz differ diff --git a/keentuned.spec b/keentuned.spec index 3d2a3bfe3f50186c307378b78ca5130d97daf103..73761607276919abc781d48d4bdaa1dc29861816 100644 --- a/keentuned.spec +++ b/keentuned.spec @@ -1,22 +1,21 @@ %define debug_package %{nil} -%define anolis_release 1 - -# -# spec file for package golang-keentuned -# +%define anolis_release 2 Name: keentuned -Version: 1.0.1 +Version: 2.3.0 Release: %{?anolis_release}%{?dist} -Url: https://gitee.com/anolis/keentuned Summary: KeenTune tuning tools +Vendor: Alibaba License: MulanPSLv2 -Source: %{name}-%{version}.tar.gz +Source: %{name}-%{version}-%{anolis_release}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Autoreq: 0 BuildRequires: go >= 1.13 +BuildRequires: systemd -Vendor: Alibaba +Requires(post): systemd +Requires(preun): systemd +Requires(postun): systemd %description KeenTune tuning tools rpm package @@ -25,49 +24,150 @@ KeenTune tuning tools rpm package %setup -n %{name}-%{version} %build -go env -w CGO_ENABLED=0 -go env -w GO111MODULE=on -go env -w GOPROXY=https://goproxy.cn,direct -cd daemon -go build -ldflags=-linkmode=external -o keentuned -mv -f keentuned ../ -cd ../cli -go build -ldflags=-linkmode=external -o keentune -mv -f keentune ../ -cd ../ +%make_build %install -rm -rf $RPM_BUILD_ROOT -mkdir -p ${RPM_BUILD_ROOT}/usr/bin/ -mkdir -p ${RPM_BUILD_ROOT}/etc/keentune/ -mkdir -p ${RPM_BUILD_ROOT}/etc/keentune/conf/ -mkdir -p ${RPM_BUILD_ROOT}/usr/lib/systemd/system/ - -cp -f keentune ${RPM_BUILD_ROOT}/usr/bin/keentune -cp -f keentuned ${RPM_BUILD_ROOT}/usr/bin/keentuned -cp -rf daemon/examples/. ${RPM_BUILD_ROOT}/etc/keentune -cp -f ./keentuned.conf ${RPM_BUILD_ROOT}/etc/keentune/conf/ -cp -f ./keentuned.service ${RPM_BUILD_ROOT}/usr/lib/systemd/system/ +%make_install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" rm -rf $RPM_BUILD_DIR/%{name}-%{version} -%post -systemctl daemon-reload +%post +%systemd_post keentuned.service + +%preun +%systemd_preun keentuned.service + +%postun +%systemd_postun_with_restart keentuned.service +rm -rf /var/keentune/keentuned /etc/keentune/keentuned +cd /var/log/keentune && rm -f $(ls |grep -Ev "bench|brain|target") +[ $(ls -A /var/log/keentune|wc -l) -ne 0 ] || rm -rf /var/log/keentune +[ $(ls -A /var/keentune|wc -l) -ne 0 ] || rm -rf /var/keentune +[ $(ls -A /etc/keentune|wc -l) -ne 0 ] || rm -rf /etc/keentune %files -%defattr(0444,root,root, 0555) -%attr(0555, root, root) /usr/bin/keentune -%attr(0555, root, root) /usr/bin/keentuned -%{_bindir}/%{name} -%{_bindir}/keentune -%{_sysconfdir}/keentune +%defattr(0644,root,root, 0755) %license LICENSE +%doc README.md docs/* +%attr(0755, root, root) %{_bindir}/keentune +%attr(0755, root, root) %{_bindir}/keentuned +%{_sysconfdir}/keentune/keentuned %{_prefix}/lib/systemd/system/keentuned.service +%{_mandir}/man8/keentune.8* +%{_mandir}/man8/keentuned.8* +%{_mandir}/man5/keentuned.conf.5* +%{_mandir}/man7/keentune-benchmark.7* +%{_mandir}/man7/keentune-profile.7* +%{_mandir}/man7/keentune-detect.7* +%{_prefix}/share/bash-completion/completions/keentune.bash %changelog -* Wed Jan 01 2022 Runzhe Wang <15501019889@126.com> - 1.0.1-1 +* Wed Sep 20 2023 Runzhe Wang - 2.3.0-2 +- profile: remove duplicatly setting of rfs in redis/memcached +- profile: remove param vm.drop_caches from basic profile + +* Thu Sep 14 2023 Runzhe Wang - 2.3.0-1 +- update memcached.conf, mysql.conf, nginx.conf, pgsql.conf, redis.conf + +* Tue Aug 8 2023 Runzhe Wang - 2.2.0-8 +- resolve some security issues. + +* Fri Jul 7 2023 Runzhe Wang - 2.2.0-7 +- modify application profiles, remove opensource file + +* Wed Jul 5 2023 Runzhe Wang - 2.2.0-6 +- bigdata: remove 'file' domain + +* Wed Jul 5 2023 Runzhe Wang - 2.2.0-5 +- set dirty_background_ratio by sysctl + +* Wed Jul 5 2023 Runzhe Wang - 2.2.0-4 +- add bigdata.conf for KS + +* Mon Jul 3 2023 Runzhe Wang - 2.2.0-3 +- modify RPS to 'auto' in redis.conf and memcached.conf + +* Thu Jun 29 2023 Runzhe Wang - 2.2.0-2 +- modify XPS/RPS to 'auto' + +* Mon Jun 26 2023 Runzhe Wang - 2.2.0-1 +- remove rollback all function + +* Wed Nov 29 2023 Runzhe Wang - 2.1.0-8 +- add copyright +- add release in source package + +* Tue Apr 25 2023 Runzhe Wang - 2.1.0-5 +- test: modify unit test case + +* Fri Apr 21 2023 Runzhe Wang - 2.1.0-4 +- add unit test case + +* Wed Apr 12 2023 Runzhe Wang - 2.1.0-2 +- modify default tuning algorithm in conf + +* Wed Mar 22 2023 Runzhe Wang - 2.1.0-1 +- add: Support rule list control for parameters in parameter.json +- add: Support timeout control mechanism +- add: Support domain list control for target mathine +- fix: Other important bug fixes + +* Tue Jan 17 2023 Runzhe Wang - 2.0.1-2 +- add: Update profile set for UI +- fix: Reduce the delay of default setting +- fix: Sync update keentune version in docs +- fix: other known important bug fixes + +* Thu Dec 15 2022 Runzhe Wang - 2.0.0-0 +- Support experience tuning of Tuned + +* Thu Sep 22 2022 Runzhe Wang - 1.4.0-0 +- add: Support UI Intelligent tuning and Sensitive parameter identification +- add: Support show recommendation log for expert one click tuning +- add: Support UI configure KeenTune groups' network environment +- add: Support UI perform param rollback +- add: Support UI perform param dump +- add: Support KeenTune Recovery of all environments +- add: Remove field '--config' from Intelligent tuning and Sensitive parameter identification +- fix: Remove daemon self start +- fix: Unify response code for cli +- fix: Modify daemon start show log +- other bugs fix + +* Thu Jul 21 2022 Runzhe Wang - 1.3.0-1 +- fix: missing of man dir + +* Tue Jul 12 2022 Runzhe Wang - 1.3.0-0 +- Add: Support UI expert one click tuning + +* Mon Jun 20 2022 Runzhe Wang - 1.2.1-2 +- fix: Clear task residue on startup + +* Mon Jun 20 2022 Runzhe Wang - 1.2.1-1 +- update docs + +* Thu May 05 2022 happy_orange - 1.2.0-2 +- add makefile +- update spec file + +* Mon Apr 04 2022 Runzhe Wang - 1.2.0 +- Add capabilities of target-group and bench-group +- Fix some issues +- Add 'keentune version' command + +* Thu Mar 03 2022 Runzhe Wang - 1.1.0 +- remove parameter fs.nr_open +- Add support for GP (in iTuned) in sensitizing algorithms +- Add support for lasso in sensitizing algorithms +- refactor tornado module: replace await by threadpool +- lazy load domain in keentune-target +- fix other bugs +- Add baseline reading before init brain +- Supporting multiple param json for tuning +- Fix rollback failure +- Clean empty dir when uninstall - Verify input arguments of command 'param tune' - Supporting of multiple target tuning - Fix bug which cause keentune hanging after command 'param stop' @@ -76,22 +176,15 @@ systemctl daemon-reload - Refactor sysctl domain to improve stability of parameter setting - Fix some user experience issues -* Wed Dec 15 2021 Runzhe Wang <15501019889@126.com> - 1.0.0-5 +* Wed Dec 15 2021 Runzhe Wang - 1.0.0 +- add tpce tpch benchmark files - fix bug: can not running in alinux2 and centos7 - change modify codeup address to gitee - -* Fri Dec 03 2021 wenchao - 1.0.0-4 - manage keentuned with systemctl - fix: show brain error in the keentuned log - fix: profile set supports absolute and relative paths - fix: show exact job abort log after the stop command - -* Wed Nov 24 2021 runzhe.wrz <15501019889@126.com> - 1.0.0-3 - add nginx_conf parameter config file - -* Wed Nov 10 2021 wenchao - 1.0.0-2 - use '%license' macro - update license to MulanPSLv2 - -* Sun Aug 1 2021 wenchao - 1.0.0-1 - Init Keentuned.