forked from apache/bigtop-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BIGTOP-4305: Add MySQL to infra stack (apache#128)
- Loading branch information
Showing
18 changed files
with
581 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ager-server/src/main/resources/stacks/infra/1.0.0/services/mysql/configuration/common.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<configuration> | ||
<property> | ||
<name>root_password</name> | ||
<value>root</value> | ||
<display-name>Root Password</display-name> | ||
<description>Password for MySQL root user.</description> | ||
</property> | ||
</configuration> |
56 changes: 56 additions & 0 deletions
56
...ager-server/src/main/resources/stacks/infra/1.0.0/services/mysql/configuration/my.cnf.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<configuration> | ||
<property> | ||
<name>mysql_log_dir</name> | ||
<value>/var/log/mysql</value> | ||
<display-name>MySQL Log Dir</display-name> | ||
<description>MySQL Log Dir</description> | ||
</property> | ||
<property> | ||
<name>mysql_pid_dir</name> | ||
<value>/var/run/mysql</value> | ||
<display-name>MySQL PID Dir</display-name> | ||
<description>MySQL Pid Dir</description> | ||
</property> | ||
<!-- my.cnf --> | ||
<property> | ||
<name>content</name> | ||
<display-name>my.cnf template</display-name> | ||
<description>This is the freemarker template for my.cnf file</description> | ||
<value><![CDATA[ | ||
[mysqld] | ||
port=3306 | ||
basedir=${mysql_home} | ||
datadir=${mysql_home}/data | ||
pid-file = ${mysql_pid_dir}/mysqld.pid | ||
log-error = ${mysql_log_dir}/error.log | ||
general-log-file = ${mysql_log_dir}/general.log | ||
slow-query-log-file = ${mysql_log_dir}/slow.log | ||
log-bin = ${mysql_log_dir}/mysql-bin.log | ||
default-storage-engine=INNODB | ||
]]> | ||
</value> | ||
<attrs> | ||
<type>longtext</type> | ||
</attrs> | ||
</property> | ||
</configuration> |
73 changes: 73 additions & 0 deletions
73
bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/mysql/metainfo.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
~ Licensed to the Apache Software Foundation (ASF) under one | ||
~ or more contributor license agreements. See the NOTICE file | ||
~ distributed with this work for additional information | ||
~ regarding copyright ownership. The ASF licenses this file | ||
~ to you under the Apache License, Version 2.0 (the | ||
~ "License"); you may not use this file except in compliance | ||
~ with the License. You may obtain a copy of the License at | ||
~ | ||
~ https://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, | ||
~ software distributed under the License is distributed on an | ||
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
~ KIND, either express or implied. See the License for the | ||
~ specific language governing permissions and limitations | ||
~ under the License. | ||
--> | ||
|
||
<metainfo> | ||
<service> | ||
<name>mysql</name> | ||
<display-name>MySQL</display-name> | ||
<desc> | ||
MySQL is an open source relational database management system (RDBMS) that’s used to store and manage data. | ||
Its reliability, performance, scalability, and ease of use make MySQL a popular choice for developers. | ||
</desc> | ||
<version>8.0.40</version> | ||
<user>mysql</user> | ||
|
||
<components> | ||
<component> | ||
<name>mysql_server</name> | ||
<display-name>MySQL Server</display-name> | ||
<category>server</category> | ||
<cardinality>1</cardinality> | ||
</component> | ||
|
||
<component> | ||
<name>mysql_client</name> | ||
<display-name>MySQL Client</display-name> | ||
<category>client</category> | ||
<cardinality>1+</cardinality> | ||
</component> | ||
</components> | ||
|
||
<package-specifics> | ||
<package-specific> | ||
<architectures> | ||
<arch>x86_64</arch> | ||
</architectures> | ||
<packages> | ||
<package> | ||
<name>mysql-8.0.40-linux-glibc2.28-x86_64.tar.xz</name> | ||
<checksum>MD5:dcf2702f953d1969be44083f4f063f18</checksum> | ||
</package> | ||
</packages> | ||
</package-specific> | ||
<package-specific> | ||
<architectures> | ||
<arch>aarch64</arch> | ||
</architectures> | ||
<packages> | ||
<package> | ||
<name>mysql-8.0.40-linux-glibc2.28-aarch64.tar.xz</name> | ||
<checksum>MD5:a79f41ce62784a1a0e081c76116008de</checksum> | ||
</package> | ||
</packages> | ||
</package-specific> | ||
</package-specifics> | ||
</service> | ||
</metainfo> |
1 change: 1 addition & 0 deletions
1
bigtop-manager-server/src/main/resources/stacks/infra/1.0.0/services/mysql/order.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.