posted by 떠돌이늑대 2020. 7. 20. 14:39

binlog_row_metadata

  • Description: Controls the format used for binlog metadata logging.
    • NO_LOG: No metadata is logged (default).
    • MINIMAL: Only metadata required by a slave is logged.
    • FULL: All metadata is logged.
  • Commandline: --binlog-row-metadata=value
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: enum
  • Default Value: NO_LOG
  • Valid Values: NO_LOG, MINIMAL, FULL
  • Introduced: MariaDB 10.5.0

 

innodb_instant_alter_column_allowed

  • Description:
    • If a table is altered using ALGORITHM=INSTANT, it can force the table to use a non-canonical format: A hidden metadata record at the start of the clustered index is used to store each column's DEFAULT value. This makes it possible to add new columns that have default values without rebuilding the table. Starting with MariaDB 10.4, a BLOB in the hidden metadata record is used to store column mappings. This makes it possible to drop or reorder columns without rebuilding the table. This also makes it possible to add columns to any position or drop columns from any position in the table without rebuilding the table. If a column is dropped without rebuilding the table, old records will contain garbage in that column's former position, and new records will be written with NULL values, empty strings, or dummy values.
    • This is generally not a problem. However, there may be cases where you want to avoid putting a table into this format. For example, to ensure that future UPDATE operations after an ADD COLUMN will be performed in-place, to reduce write amplification. (Instantly added columns are essentially always variable-length.) Also avoid bugs similar to MDEV-19916, or to be able to export tables to older versions of the server.
    • This variable has been introduced as a result, with the following values:
    • never (0): Do not allow instant add/drop/reorder, to maintain format compatibility with MariaDB 10.x and MySQL 5.x. If the table (or partition) is not in the canonical format, then any ALTER TABLE (even one that does not involve instant column operations) will force a table rebuild.
    • add_last (1, default in 10.3): Store a hidden metadata record that allows columns to be appended to the table instantly (MDEV-11369). In 10.4 or later, if the table (or partition) is not in this format, then any ALTER TABLE (even one that does not involve column changes) will force a table rebuild.
    • add_drop_reorder (2, default): From MariaDB 10.4 only. Like 'add_last', but allow the metadata record to store a column map, to support instant add/drop/reorder of columns.
  • Commandline: --innodb-instant-alter-column-allowed=value
  • Scope: Global
  • Dynamic: Yes
  • Data Type: enum
  • Valid Values:
  • Default Value:
  • Introduced: MariaDB 10.3.23, MariaDB 10.4.13, MariaDB 10.5.3

 

 

performance_schema_events_transactions_history_long_size

  • Description: Number of rows in events_transactions_history_long table. Use 0 to disable, -1 for automated sizing.
  • Commandline: --performance-schema-events-transactions-history-long-size=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_events_transactions_history_size

  • Description:Number of rows per thread in events_transactions_history. Use 0 to disable, -1 for automated sizing.
  • Commandline: --performance-schema-events-transactions-history-size=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1024
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_index_stat

  • Description: Maximum number of index statistics for instrumented tables. Use 0 to disable, -1 for automated scaling.
  • Commandline: --performance-schema-max-index-stat=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_memory_classes

  • Description: Maximum number of memory pool instruments.
  • Commandline: --performance-schema-max-memory-classes=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 320
  • Range: 0 to 1024
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_metadata_locks

  • Description: Maximum number of metadata locks. Use 0 to disable, -1 for automated scaling.
  • Commandline: --performance-schema-max-metadata-locks=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 104857600
  • Introduced: MariaDB 10.5.2

 

 

 

performance_schema_max_prepared_statement_instances

  • Description: Maximum number of instrumented prepared statements. Use 0 to disable, -1 for automated scaling.
  • Commandline: --performance-schema-max-prepared-statement-instances=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

 

performance_schema_max_program_instances

  • Description: Maximum number of instrumented programs. Use 0 to disable, -1 for automated scaling.
  • Commandline: --performance-schema-max-program-instances=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_sql_text_length

  • Description: Maximum length of displayed sql text.
  • Commandline: --performance-schema-max-sql-text-length=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 1024
  • Range: 0 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_statement_stack

  • Description: Number of rows per thread in EVENTS_STATEMENTS_CURRENT.
  • Commandline: --performance-schema-max-statement-stack=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: 10
  • Range: 1 to 256
  • Introduced: MariaDB 10.5.2

 

 

performance_schema_max_table_lock_stat

  • Description: Maximum number of lock statistics for instrumented tables. Use 0 to disable, -1 for automated scaling.
  • Commandline: --performance-schema-max-table-lock-stat=#
  • Scope: Global
  • Dynamic: No
  • Data Type: numeric
  • Default Value: -1
  • Range: -1 to 1048576
  • Introduced: MariaDB 10.5.2

 

 

s3_access_key

  • Description: The AWS access key to access your data. See mysqld startup options for S3.
  • Commandline: --s3-access-key=val
  • Scope: Global
  • Dynamic: No
  • Data Type: String
  • Default Value: (Empty)
  • Introduced: MariaDB 10.5.4

 

 

s3_block_size

  • Description: The default block size for a table, if not specified in CREATE TABLE. Set to 4M as default. See mysqld startup options for S3.
  • Commandline: --s3-block-size=#
  • Scope: Global
  • Dynamic: Yes
  • Data Type: Numeric
  • Default Value: 4194304
  • Range: 4194304 to 16777216
  • Introduced: MariaDB 10.5.4

s3_bucket

  • Description: The AWS bucket where your data should be stored. All MariaDB table data is stored in this bucket. See mysqld startup options for S3.
  • Commandline: --s3-bucket=val
  • Scope: Global
  • Dynamic: No
  • Data Type: String
  • Default Value: MariaDB
  • Introduced: MariaDB 10.5.4

s3_debug

  • Description: Generates a trace file from libmarias3 on stderr (mysqld.err) for debugging the S3 protocol.
  • Commandline: --s3-debug{=0|1}
  • Scope: Global
  • Dynamic: No
  • Data Type: Boolean
  • Valid Values: 0 or 1
  • Default Value: 0
  • Introduced: MariaDB 10.5.4

s3_host_name

  • Description: Hostname for the S3 service. "s3.amazonaws.com", Amazon S3 service, by default
  • Commandline: --s3-host-name=val
  • Scope: Globa;
  • Dynamic: No
  • Data Type: String
  • Default Value: s3.amazonaws.com
  • Introduced: MariaDB 10.5.4

s3_pagecache_age_threshold

  • Description: This characterizes the number of hits a hot block has to be untouched until it is considered aged enough to be downgraded to a warm block. This specifies the percentage ratio of that number of hits to the total number of blocks in the page cache.
  • Commandline: --s3-pagecache-age-threshold=val
  • Scope: Global
  • Dynamic: Yes
  • Data Type: Numeric
  • Default Value: 300
  • Range: 100 to 18446744073709551615
  • Introduced: MariaDB 10.5.4

s3_pagecache_buffer_size

  • Description: The size of the buffer used for index blocks for S3 tables. Increase this to get better index handling (for all reads and multiple writes) to as much as you can afford. Size can be adjusted in blocks of 8192.
  • Commandline: --s3-pagecache-buffer-size=val
  • Scope: Global
  • Dynamic: No
  • Data Type: Numeric
  • Default Value: 134217728 (128M)
  • Range: 33554432 to 18446744073709551615
  • Introduced: MariaDB 10.5.4

s3_pagecache_division_limit

  • Description: The minimum percentage of warm blocks in key cache.
  • Commandline: --s3-pagecache-division-limit=val
  • Scope: Global
  • Dynamic: Yes
  • Data Type: Numeric
  • Default Value: 100
  • Range: 1 to 100
  • Introduced: MariaDB 10.5.4

s3_pagecache_file_hash_size

  • Description: Number of hash buckets for open files. Default 512. If you have a lot of S3 files open you should increase this for faster flush of changes. A good value is probably 1/10 of number of possible open S3 files.
  • Commandline: --s3-pagecache-file-hash-size=#
  • Scope: Global
  • Dynamic: No
  • Data Type: Numeric
  • Default Value: 512
  • Range: 32 to 16384
  • Introduced: MariaDB 10.5.4

s3_protocol_version

  • Description: Protocol used to communication with S3. One of "Auto", "Amazon" or "Original" where "Auto" is the default. If you get errors like "8 Access Denied" when you are connecting to another service provider, then try to change this option. The reason for this variable is that Amazon has changed some parts of the S3 protocol since they originally introduced it but other service providers are still using the original protocol.
  • Commandline: --s3-protocol-version=val
  • Scope: Global
  • Dynamic: Yes
  • Data Type: Enum
  • Valid Values: Auto, Amazon or Original
  • Default Value: Auto
  • Introduced: MariaDB 10.5.4

s3_region

  • Description: The AWS region where your data should be stored. See mysqld startup options for S3.
  • Commandline: --s3-region=val
  • Scope: Global
  • Dynamic: No
  • Data Type: String
  • Default Value: (Empty)
  • Introduced: MariaDB 10.5.4

s3_replicate_alter_as_create_select

  • Description: When converting S3 table to local table, log all rows in binary log. This allows the slave to replicate CREATE TABLE .. SELECT FROM s3_table even it the slave doesn't have access to the original s3_table.
  • Commandline: --s3-replicate-alter-as-create-select{=0|1}
  • Scope: Global
  • Dynamic: No
  • Data Type: Boolean
  • Default Value: 1
  • Introduced: MariaDB 10.5.4

s3_secret_key

  • Description: The AWS secret key to access your data. See mysqld startup options for S3.
  • Commandline: --s3-secret-key=val
  • Scope: Global
  • Dynamic: No
  • Data Type: String
  • Default Value: (Empty)
  • Introduced: MariaDB 10.5.4

s3_slave_ignore_updates

  • Description: Should be set if master and slave share the same S3 instance. This tells the slave that it can ignore any updates to the S3 tables as they are already applied on the master.
  • Commandline: --s3-slave-ignore-updates{=0|1}
  • Scope: Global
  • Dynamic: No
  • Data Type: Boolean
  • Default Value: 0
  • Introduced: MariaDB 10.5.4

sql_if_exists

  • Description: If set to 1, adds an implicit IF EXISTS to ALTER, RENAME and DROP of TABLES, VIEWS, FUNCTIONS and PACKAGES. This variable is mainly used in replication to tag DDLs that can be ignored on the slave if the target table doesn't exist.
  • Commandline: --sql-if-exists[={0|1}]
  • Scope: Global, Session
  • Dynamic: Yes
  • Data Type: boolean
  • Default Value: OFF
  • Introduced: MariaDB 10.5.2

 

 

thread_pool_dedicated_listener

  • Description: If set to 1, then each group will have its own dedicated listener, and the listener thread will not pick up work items. As a result, the queueing time in the Information Schema Threadpool_Queues and the actual queue size in the Information Schema Threadpool_Groups table will be more exact, since IO requests are immediately dequeued from poll, without delay.
    • This system variable is only meaningful on Unix.
  • Commandline: thread-pool-dedicated-listener={0|1}
  • Scope:
  • Dynamic:
  • Data Type: boolean
  • Default Value: 0
  • Introduced: MariaDB 10.5.0

 

 

thread_pool_exact_stats

  • Description: If set to 1, provides better queueing time statistics by using a high precision timestamp, at a small performance cost, for the time when the connection was added to the queue. This timestamp helps calculate the queuing time shown in the Information Schema Threadpool_Queues table.
    • This system variable is only meaningful on Unix.
  • Commandline: thread-pool-exact-stats={0|1}
  • Scope:
  • Dynamic:
  • Data Type: boolean
  • Default Value: 0
  • Introduced: MariaDB 10.5.0

'컴이야기 > MariaDB' 카테고리의 다른 글

MaxScale HA setup using Keepalived and MaxCtrl  (0) 2021.01.07
MariaDB installing in minimal install RHEL8  (0) 2020.07.20
Maxscale  (0) 2020.06.30
CRUD  (0) 2020.06.12
Using Galera Replication to Create Geo-distributed Clusters  (0) 2020.06.12
posted by 떠돌이늑대 2020. 7. 20. 13:03

mysql_secure_installation  error

 

'컴이야기 > MariaDB' 카테고리의 다른 글

MaxScale HA setup using Keepalived and MaxCtrl  (0) 2021.01.07
10.5 에서 추가된 시스템 변수  (0) 2020.07.20
Maxscale  (0) 2020.06.30
CRUD  (0) 2020.06.12
Using Galera Replication to Create Geo-distributed Clusters  (0) 2020.06.12
posted by 떠돌이늑대 2020. 7. 20. 10:53

환경

  • Red Hat Enterprise Linux 7
  • Red Hat Virtualization if RHEL 7 is used as the virtualization host
  • Red Hat Virtualization (RHV) 4.3

문제

  • On a RHEL 7 host, using libguestfs utilities such as guestfish, virt-sysprep, or virt-customize to access or modify a RHEL 8 virtual disk image fails if the disk image is using an XFS or ext4 file system.

  • For example:

Raw

# /usr/bin/virt-sysprep -a RHEL8.img [' [ 0.0] Examining the guest ... virt-sysprep: warning: mount_options: mount exited with status 32: mount: wrong fs type, bad option, bad superblock on /dev/mapper/rhel-root, missing codepage or helper program, or other error', ' In some cases useful info is found in syslog - try dmesg | tail or so. (ignored)', 'virt-sysprep: warning: mount_options: mount: /boot: mount point is not a directory (ignored) [ 15.5] Performing "abrt-data" ...']

  • In RHV 4.3, it is not possible to create a template of RHEL8 guest due to this behavior

해결

There are two possible workarounds:

  1. If viable, you can re-create the guest file systems and disable RHEL 8 file-system features that are incompatible with RHEL 7. To do so, use the mkfs utility with one of the following options:

    • For XFS file systems, use the -m reflink=0 option.
    • For ext4 file systems, use the -O ^metadata_csum option.
    • This is documented in this article.
    • Note that on a RHEL 8 host, the affected utilities work as expected.
  2. Disclaimer: this workaround is unsupported - use the upstream latest libguestfs appliance.

    1. Download the latest upstream libguestfs appliance on RHEL-7 host:

      Raw

      [RHEL7.6-host]$ pwd /export [RHEL7.6-host]$ wget \ http://download.libguestfs.org/binaries/appliance/appliance-1.38.0.tar.xz

    2. Extract the upstream appliance and enumerate its content, also, make sure that qemu has access to the files:

      Raw

      [RHEL7.6-host]$ tar -Jxf appliance-1.38.0.tar.xz [RHEL7.6-host]$ ls /export/appliance initrd kernel README.fixed root [RHEL7.6-host]$ chmod -R a+rwX /export/applicance

    3. Set the LIBGUESTFS_PATH variable to the above appliance:

      Raw

      [RHEL7.6-host]$ export LIBGUESTFS_PATH=/export/appliance

    4. Validate

      • Read-only mount the RHEL-8 disk image via guestfish, and read the /etc/redhat-release file:

        Raw

        [RHEL7.6-host]$ guestfish --ro -i \ -a rhel-guest-image-8.0-1590.x86_64.qcow2 Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images. Type: ‘help’ for help on commands ‘man’ to read the manual ‘quit’ to quit the shell Operating system: Red Hat Enterprise Linux 8.0 Beta (Ootpa) /dev/sda3 mounted on / /dev/sda1 mounted on /boot ><fs> cat /etc/redhat-release Red Hat Enterprise Linux release 8.0 Beta (Ootpa)

      • Or, remove the root password via virt-edit (or reset it via virt-sysprep — refer further below):

        Raw

        [RHEL7.6-host]$ virt-edit \ -a rhel-guest-image-8.0-1590.x86_64.qcow2 \ /etc/passwd -e 's/^root:.*?:/root::/'

      • Or, uninstall the ‘cloud-init’ RPM:

        Raw

        [RHEL7.6-host]$ virt-customize --uninstall cloud-init \ -a rhel-guest-image-8.0-1590.x86_64.qcow2

      • Or just cat a file

        Raw

        [RHEL7.6-host]$ virt-cat -a rhel-guest-image-8.0-1590.x86_64.qcow2 /var/log/cloud-init.log > cloud-init.log

근본 원인

RHEL 7 is not fully compatible with certain features of the XFS and ext4 file systems in RHEL 8, based on RH Private BZ#1667478.
RHV BZ 1671895.

'컴이야기 > linux' 카테고리의 다른 글

Netdata 모니터링  (0) 2020.11.18
KVM VM IP 알아보기  (0) 2020.08.06
RHEL 8 local dnf 설정  (0) 2020.07.20
fail to open efi boot grubx64.efi  (0) 2018.09.20
yum 이 안되는 곳에서 PHP7 설치  (0) 2018.02.12
posted by 떠돌이늑대 2020. 7. 20. 09:57

baseurl는 iso파일을 마운트한 곳으로 지정해주면 된다. 

posted by 떠돌이늑대 2020. 6. 30. 13:13

posted by 떠돌이늑대 2020. 6. 12. 13:24

Create,

Read,

Update,

Delete

'컴이야기 > MariaDB' 카테고리의 다른 글

MariaDB installing in minimal install RHEL8  (0) 2020.07.20
Maxscale  (0) 2020.06.30
Using Galera Replication to Create Geo-distributed Clusters  (0) 2020.06.12
List of Galera Cluster Status variables  (0) 2020.06.08
sysbench Test  (0) 2020.06.02
posted by 떠돌이늑대 2020. 6. 12. 11:13

https://youtu.be/-UxNUKYh7Vw

 "wsrep_provider_options" with "gmcast.segment= "

 

'컴이야기 > MariaDB' 카테고리의 다른 글

Maxscale  (0) 2020.06.30
CRUD  (0) 2020.06.12
List of Galera Cluster Status variables  (0) 2020.06.08
sysbench Test  (0) 2020.06.02
Maxscale Fail-Over, Switch-Over, Re-Join  (0) 2020.05.26
posted by 떠돌이늑대 2020. 6. 8. 11:20

https://mariadb.com/kb/en/galera-cluster-status-variables

 

Galera Cluster Status Variables

Galera Cluster Status Variables

mariadb.com

wsrep_applier_thread_count
설명 :이 유형의 슬레이브 스레드 수를 명확하게하기 위해 현재의 적용자 스레드 수를 저장합니다.

 

wsrep_apply_oooe
설명 : 병렬화 효율성의 지표 인 쓰기 세트가 순서대로 적용되지 않은 빈도입니다.

 

wsrep_apply_oool
설명 : 시퀀스 번호가 낮은 쓰기 세트를 시퀀스 번호가 낮은 쓰기 세트보다 먼저 적용하여 쓰기 세트가 느리다는 것을 나타냅니다.

 

wsrep_apply_window
설명 : 가장 높고 가장 낮은 동시 적용 seqno 사이의 평균 거리.

 

wsrep_cert_deps_distance
설명 : 병렬로 적용 할 수있는 가장 높은 시퀀스 번호와 가장 낮은 시퀀스 번호 사이의 평균 거리 또는 가능한 병렬화 수준.

 

....

'컴이야기 > MariaDB' 카테고리의 다른 글

CRUD  (0) 2020.06.12
Using Galera Replication to Create Geo-distributed Clusters  (0) 2020.06.12
sysbench Test  (0) 2020.06.02
Maxscale Fail-Over, Switch-Over, Re-Join  (0) 2020.05.26
Maxscale serversize ,weightby  (0) 2020.05.22
posted by 떠돌이늑대 2020. 6. 2. 15:03

CPU 코어 1개

[root@localhost ~]# sysbench --mysql-db=cfpc --mysql-host=192.168.1.18 --mysql-port=4006 --mysql-user=maxscale --mysql-password=maxscale123 --max-time=600 --threads=40 /usr/share/sysbench/oltp_insert.lua run
WARNING: --max-time is deprecated, use --time instead
sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 40
Initializing random number generator from current time


Initializing worker threads...

Threads started!

SQL statistics:
queries performed:
read: 0
write: 6085278
other: 0
total: 6085278
transactions: 6085278 (10141.57 per sec.)
queries: 6085278 (10141.57 per sec.)
ignored errors: 0 (0.00 per sec.)
reconnects: 0 (0.00 per sec.)

General statistics:
total time: 600.0326s
total number of events: 6085278

Latency (ms):
min: 0.17
avg: 3.94
max: 662.70
95th percentile: 8.58
sum: 23990186.08

Threads fairness:
events (avg/stddev): 152131.9500/533.58
execution time (avg/stddev): 599.7547/0.01


CPU 코어 4개

[root@localhost ~]# sysbench --mysql-db=cfpc --mysql-host=192.168.1.18 --mysql-port=4006 --mysql-user=maxscale --mysql-password=maxscale123 --max-time=600 --threads=40 /usr/share/sysbench/oltp_insert.lua run
WARNING: --max-time is deprecated, use --time instead
sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2)

Running the test with following options:
Number of threads: 40
Initializing random number generator from current time


Initializing worker threads...

Threads started!

SQL statistics:
queries performed:
read: 0
write: 18718049
other: 0
total: 18718049
transactions: 18718049 (31195.96 per sec.)
queries: 18718049 (31195.96 per sec.)
ignored errors: 0 (0.00 per sec.)
reconnects: 0 (0.00 per sec.)

General statistics:
total time: 600.0144s
total number of events: 18718049

Latency (ms):
min: 0.15
avg: 1.28
max: 426.97
95th percentile: 3.02
sum: 23967305.01

Threads fairness:
events (avg/stddev): 467951.2250/18031.93
execution time (avg/stddev): 599.1826/0.03

posted by 떠돌이늑대 2020. 5. 26. 17:07

나의 왕복출퇴근 거리 50Km

 

플러그인 하이브리드는 

스펙상 46Km 거리를 전기모드로 운행가능

 

그러나 4월부터는 실제로 60Km  거리 이상 전기모드 주행이 가능했다.

 

완속충전밖에 안되기 때문에 풀충전 기준으로 공용충전기 2시간 40분정도

비상용충전기 (220V 12A) 3시간 40분정도 시간이 걸린다. 

 

전기모드를 충분히 사용하기 위해서는 집밥 또는 회사밥이 필수 

충전기사업자마다 요금이 다름,

공용충전기는 이용못할 때가 많음

(기기고장, 주차장 문닫음, 급속이 많음, 완속은 별로 없음, 충전주차구역을 다른용도로 활용 등등 )

 

집밥과 회사밥이 없는 나는 집에서는 비상용충전기로 , 회사근처에서는 공용충전기로 충전하며 다닌다. 

모자르면 엔진가동~

 

결론 플러그인을 사길 잘했다.