mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
ndbcluster rpms
This commit is contained in:
@ -104,6 +104,53 @@ This package contains the standard MySQL clients and administration tools.
|
|||||||
%description client -l pt_BR
|
%description client -l pt_BR
|
||||||
Este pacote cont<6E>m os clientes padr<64>o para o MySQL.
|
Este pacote cont<6E>m os clientes padr<64>o para o MySQL.
|
||||||
|
|
||||||
|
%package ndb-storage
|
||||||
|
Release: %{release}
|
||||||
|
Summary: MySQL - ndbcluster storage engine
|
||||||
|
Group: Applications/Databases
|
||||||
|
|
||||||
|
%description ndb-storage
|
||||||
|
This package contains the ndbcluster storage engine.
|
||||||
|
It is necessary to have this package installed on all
|
||||||
|
computers that should store ndbcluster table data.
|
||||||
|
Note that this storage engine can only be used in conjunction
|
||||||
|
with the MySQL Max server.
|
||||||
|
|
||||||
|
%{see_base}
|
||||||
|
|
||||||
|
%package ndb-management
|
||||||
|
Release: %{release}
|
||||||
|
Summary: MySQL - ndbcluster storage engine management
|
||||||
|
Group: Applications/Databases
|
||||||
|
|
||||||
|
%description ndb-management
|
||||||
|
This package contains ndbcluster storage engine management.
|
||||||
|
It is necessary to have this package installed on at least
|
||||||
|
one computer in the cluster.
|
||||||
|
|
||||||
|
%{see_base}
|
||||||
|
|
||||||
|
%package ndb-tools
|
||||||
|
Release: %{release}
|
||||||
|
Summary: MySQL - ndbcluster storage engine basic tools
|
||||||
|
Group: Applications/Databases
|
||||||
|
|
||||||
|
%description ndb-tools
|
||||||
|
This package contains ndbcluster storage engine basic tools.
|
||||||
|
|
||||||
|
%{see_base}
|
||||||
|
|
||||||
|
%package ndb-extra
|
||||||
|
Release: %{release}
|
||||||
|
Summary: MySQL - ndbcluster storage engine extra tools
|
||||||
|
Group: Applications/Databases
|
||||||
|
|
||||||
|
%description ndb-extra
|
||||||
|
This package contains some extra ndbcluster storage engine tools for the advanced user.
|
||||||
|
They should be used with caution.
|
||||||
|
|
||||||
|
%{see_base}
|
||||||
|
|
||||||
%package bench
|
%package bench
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
Requires: %{name}-client perl-DBI perl
|
Requires: %{name}-client perl-DBI perl
|
||||||
@ -162,6 +209,7 @@ Requires: MySQL-server >= 4.0
|
|||||||
Optional MySQL server binary that supports additional features like:
|
Optional MySQL server binary that supports additional features like:
|
||||||
|
|
||||||
- Berkeley DB Storage Engine
|
- Berkeley DB Storage Engine
|
||||||
|
- Ndbcluster Storage Engine interface
|
||||||
- Archive Storage Engine
|
- Archive Storage Engine
|
||||||
- CSV Storage Engine
|
- CSV Storage Engine
|
||||||
- Example Storage Engine
|
- Example Storage Engine
|
||||||
@ -279,6 +327,7 @@ BuildMySQL "--enable-shared \
|
|||||||
--without-openssl \
|
--without-openssl \
|
||||||
--with-berkeley-db \
|
--with-berkeley-db \
|
||||||
--with-innodb \
|
--with-innodb \
|
||||||
|
--with-ndbcluster \
|
||||||
--with-raid \
|
--with-raid \
|
||||||
--with-archive \
|
--with-archive \
|
||||||
--with-csv-storage-engine \
|
--with-csv-storage-engine \
|
||||||
@ -293,6 +342,9 @@ BuildMySQL "--enable-shared \
|
|||||||
mv sql/mysqld sql/mysqld-max
|
mv sql/mysqld sql/mysqld-max
|
||||||
nm --numeric-sort sql/mysqld-max > sql/mysqld-max.sym
|
nm --numeric-sort sql/mysqld-max > sql/mysqld-max.sym
|
||||||
|
|
||||||
|
# Install the ndb binaries
|
||||||
|
(cd ndb; make install DESTDIR=$RBR)
|
||||||
|
|
||||||
# Install embedded server library in the build root
|
# Install embedded server library in the build root
|
||||||
install -m 644 libmysqld/libmysqld.a $RBR%{_libdir}/mysql/
|
install -m 644 libmysqld/libmysqld.a $RBR%{_libdir}/mysql/
|
||||||
|
|
||||||
@ -435,6 +487,21 @@ chmod -R og-rw $mysql_datadir/mysql
|
|||||||
# Allow safe_mysqld to start mysqld and print a message before we exit
|
# Allow safe_mysqld to start mysqld and print a message before we exit
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
|
|
||||||
|
%pre ndb-storage
|
||||||
|
mysql_clusterdir=/var/lib/mysql-cluster
|
||||||
|
|
||||||
|
# Create cluster directory if needed
|
||||||
|
if test ! -d $mysql_clusterdir; then mkdir -m755 $mysql_clusterdir; fi
|
||||||
|
|
||||||
|
|
||||||
|
%pre ndb-storage
|
||||||
|
mysql_clusterdir=/var/lib/mysql-cluster
|
||||||
|
|
||||||
|
# Create cluster directory if needed
|
||||||
|
if test ! -d $mysql_clusterdir; then mkdir -m755 $mysql_clusterdir; fi
|
||||||
|
|
||||||
|
|
||||||
%post Max
|
%post Max
|
||||||
# Restart mysqld, to use the new binary.
|
# Restart mysqld, to use the new binary.
|
||||||
echo "Restarting mysqld."
|
echo "Restarting mysqld."
|
||||||
@ -475,6 +542,7 @@ fi
|
|||||||
%doc Docs/manual.{html,ps,texi,txt}
|
%doc Docs/manual.{html,ps,texi,txt}
|
||||||
%doc Docs/manual_toc.html
|
%doc Docs/manual_toc.html
|
||||||
%doc support-files/my-*.cnf
|
%doc support-files/my-*.cnf
|
||||||
|
%doc support-files/ndb-*.ini
|
||||||
|
|
||||||
%doc %attr(644, root, root) %{_infodir}/mysql.info*
|
%doc %attr(644, root, root) %{_infodir}/mysql.info*
|
||||||
|
|
||||||
@ -556,6 +624,32 @@ fi
|
|||||||
%postun shared
|
%postun shared
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
|
||||||
|
%files ndb-storage
|
||||||
|
%defattr(-,root,root,0755)
|
||||||
|
%attr(755, root, root) %{_sbindir}/ndbd
|
||||||
|
|
||||||
|
%files ndb-management
|
||||||
|
%defattr(-,root,root,0755)
|
||||||
|
%attr(755, root, root) %{_sbindir}/ndb_mgmd
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_mgm
|
||||||
|
|
||||||
|
%files ndb-tools
|
||||||
|
%defattr(-,root,root,0755)
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_mgm
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_restore
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_waiter
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_select_all
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_select_count
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_desc
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_show_tables
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_test_platform
|
||||||
|
|
||||||
|
%files ndb-extra
|
||||||
|
%defattr(-,root,root,0755)
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_drop_index
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_drop_table
|
||||||
|
%attr(755, root, root) %{_bindir}/ndb_delete_all
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-, root, root, 0755)
|
%defattr(-, root, root, 0755)
|
||||||
%doc EXCEPTIONS-CLIENT
|
%doc EXCEPTIONS-CLIENT
|
||||||
|
43
support-files/ndb-config-2-node.ini
Normal file
43
support-files/ndb-config-2-node.ini
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
# Example Ndbcluster storage engine config file.
|
||||||
|
#
|
||||||
|
[ndbd default]
|
||||||
|
NoOfReplicas= 2
|
||||||
|
MaxNoOfConcurrentOperations= 10000
|
||||||
|
DataMemory= 80M
|
||||||
|
IndexMemory= 24M
|
||||||
|
TimeBetweenWatchDogCheck= 30000
|
||||||
|
DataDir= /var/lib/mysql-cluster
|
||||||
|
MaxNoOfOrderedIndexes= 512
|
||||||
|
|
||||||
|
[ndb_mgmd default]
|
||||||
|
DataDir= /var/lib/mysql-cluster
|
||||||
|
|
||||||
|
[ndb_mgmd]
|
||||||
|
Id=1
|
||||||
|
HostName= localhost
|
||||||
|
|
||||||
|
[ndbd]
|
||||||
|
Id= 2
|
||||||
|
HostName= localhost
|
||||||
|
|
||||||
|
[ndbd]
|
||||||
|
Id= 3
|
||||||
|
HostName= localhost
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
Id= 4
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
Id= 5
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
Id= 6
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
Id= 7
|
||||||
|
|
||||||
|
# choose an unused port number
|
||||||
|
# in this configuration 63132, 63133, and 63134
|
||||||
|
# will be used
|
||||||
|
[tcp default]
|
||||||
|
PortNumber= 63132
|
Reference in New Issue
Block a user