Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
mariadb
Commits
787bf242
Commit
787bf242
authored
Nov 14, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CWMP settings to control binlog filtering on master
parent
a97a0aed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
Makefile
Makefile
+8
-0
binlog-init
binlog-init
+19
-0
No files found.
Makefile
View file @
787bf242
...
@@ -42,6 +42,8 @@ all: client-cnf mysql-clients-cnf server-cnf mariadb-config
...
@@ -42,6 +42,8 @@ all: client-cnf mysql-clients-cnf server-cnf mariadb-config
@echo
"$$MARIADB_CONFIG"
>
/etc/config/mariadb
@echo
"$$MARIADB_CONFIG"
>
/etc/config/mariadb
install
-v
-Dm755
mariadb
/usr/share/easycwmp/functions
install
-v
-Dm755
mariadb
/usr/share/easycwmp/functions
install
-v
-Dm755
wsrep-init
/usr/sbin/wsrep-init
install
-v
-Dm755
wsrep-init
/usr/sbin/wsrep-init
install
-v
-Dm755
binlog-init
/usr/sbin/binlog-init
sed
-i
'/^\[Service\]$$/a ExecStartPre=/usr/sbin/binlog-init'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a ExecStartPre=/usr/sbin/wsrep-init'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a ExecStartPre=/usr/sbin/wsrep-init'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a TimeoutStopSec=10min'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a TimeoutStopSec=10min'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a TimeoutStartSec=120min'
/lib/systemd/system/mariadb.service
sed
-i
'/^\[Service\]$$/a TimeoutStartSec=120min'
/lib/systemd/system/mariadb.service
...
@@ -136,6 +138,7 @@ innodb_flush_log_at_trx_commit = 0
...
@@ -136,6 +138,7 @@ innodb_flush_log_at_trx_commit = 0
innodb_autoinc_lock_mode
=
2
innodb_autoinc_lock_mode
=
2
innodb_lock_wait_timeout
=
50
innodb_lock_wait_timeout
=
50
!
include
/run/mysqld/binlog.conf
!
include
/run/mysqld/wsrep.conf
!
include
/run/mysqld/wsrep.conf
endef
endef
export
SERVER_CNF
export
SERVER_CNF
...
@@ -149,6 +152,11 @@ config wsrep 'galera'
...
@@ -149,6 +152,11 @@ config wsrep 'galera'
option
server_id
''
option
server_id
''
option
wsrep_gtid_domain_id
''
option
wsrep_gtid_domain_id
''
option
gtid_domain_id
''
option
gtid_domain_id
''
config
binlog
'binlog'
option
do_db
''
option
ignore_db
''
endef
endef
export
MARIADB_CONFIG
export
MARIADB_CONFIG
...
...
binlog-init
0 → 100755
View file @
787bf242
#!/bin/sh
UCI_GET
=
"/sbin/uci -q get"
DO
=
`
$UCI_GET
mariadb.binlog.do_db
`
IGNORE
=
`
$UCI_GET
mariadb.binlog.ignore_db
`
echo
"[mysqld]"
>
/run/mysqld/binlog.conf
if
[
!
-z
"
$DO
"
]
;
then
read
-ra
arr
<<<
"
$DO
"
for
db
in
"
${
arr
[@]
}
"
;
do
echo
"binlog_do_db =
$db
"
>>
/run/mysqld/binlog.conf
;
done
else
if
[
!
-z
"
$IGNORE
"
]
;
then
read
-ra
arr
<<<
"
$IGNORE
"
for
db
in
"
${
arr
[@]
}
"
;
do
echo
"binlog_ignore_db =
$db
"
>>
/run/mysqld/binlog.conf
;
done
fi
fi
chown
mysql.mysql /run/mysqld/binlog.conf
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment