diff --git a/keentuned-2.0.1.tar.gz b/keentuned-2.0.1.tar.gz deleted file mode 100644 index 18451a0e989411088a7ea30c71756a158a7f8c52..0000000000000000000000000000000000000000 Binary files a/keentuned-2.0.1.tar.gz and /dev/null differ diff --git a/keentuned.spec b/keentuned.spec index 1d09688be968d2ed1504e3850ad5cf12a029b368..b5f6d43f94c733687d278717d50cadeecf5660df 100644 --- a/keentuned.spec +++ b/keentuned.spec @@ -1,14 +1,16 @@ %define debug_package %{nil} -%define anolis_release 2 +%define anolis_release 1 Name: keentuned -Version: 2.0.1 +Version: 2.4.0 Release: %{?anolis_release}%{?dist} -Url: https://gitee.com/anolis/keentuned Summary: KeenTune tuning tools Vendor: Alibaba License: MulanPSLv2 -Source: https://gitee.com/anolis/keentuned/repository/archive/%{name}-%{version}.tar.gz +Source0: https://gitee.com/anolis/keentuned/archive/refs/tags/v%{version}.tar.gz + +# To obtain source1, execute "go mod vendor" in the source code, then execute "tar -czf vendor-v${version}.tar.gz vendor" command. +Source1: vendor-v%{version}.tar.gz Autoreq: 0 BuildRequires: go >= 1.13 @@ -22,7 +24,8 @@ Requires(postun): systemd KeenTune tuning tools rpm package %prep -%setup -n %{name}-%{version} +%setup -n %{name}-v%{version} +tar -zxf %{SOURCE1} -C ./ %build %make_build @@ -32,12 +35,12 @@ KeenTune tuning tools rpm package %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT" -rm -rf $RPM_BUILD_DIR/%{name}-%{version} +rm -rf $RPM_BUILD_DIR/%{name}-v%{version} %post %systemd_post keentuned.service -%preun +%preun %systemd_preun keentuned.service %postun @@ -49,10 +52,7 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} %doc README.md docs/* %attr(0755, root, root) %{_bindir}/keentune %attr(0755, root, root) %{_bindir}/keentuned -%attr(0666, root, root) %{_sysconfdir}/keentune/conf/keentuned.conf -%dir %{_sysconfdir}/keentune -%dir %{_sysconfdir}/keentune/conf -%{_sysconfdir}/keentune +%{_sysconfdir}/keentune/keentuned %{_prefix}/lib/systemd/system/keentuned.service %{_mandir}/man8/keentune.8* %{_mandir}/man8/keentuned.8* @@ -63,16 +63,75 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} %{_prefix}/share/bash-completion/completions/keentune.bash %changelog -* Tue Jan 17 2023 Wenchao Liu - 2.0.1-2 +* Mon Jan 22 2024 Runzhe Wang - 2.4.0-1 +- fix: not remove runing data and install dir + +* Tue Jan 02 2024 happy_orange - 2.3.1-2 +- fix the version number + +* Thu Dec 28 2023 Runzhe Wang - 2.3.1-1 +- update to v2.3.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 + +* Sat Apr 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 Wenchao Liu - 2.0.0-0 +* Thu Dec 15 2022 Runzhe Wang - 2.0.0-0 - Support experience tuning of Tuned -* Thu Sep 22 2022 Wenchao Liu - 1.4.0-0 +* 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 @@ -88,10 +147,10 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version} * Thu Jul 21 2022 Runzhe Wang - 1.3.0-1 - fix: missing of man dir -* Tue Jul 12 2022 Wenchao Liu - 1.3.0-0 +* Tue Jul 12 2022 Runzhe Wang - 1.3.0-0 - Add: Support UI expert one click tuning -* Mon Jun 20 2022 Wenchao Liu - 1.2.1-2 +* 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 diff --git a/v2.4.0.tar.gz b/v2.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..39f76ab3b9f6ca2c6244f7ceca56be6690c32eaa Binary files /dev/null and b/v2.4.0.tar.gz differ diff --git a/vendor-v2.4.0.tar.gz b/vendor-v2.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8dd127602c7623cda026546566ab97786ceb2b09 Binary files /dev/null and b/vendor-v2.4.0.tar.gz differ