[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}

MySQL索引標籤

MySQL% free storage by node

依節點 的 MySQL%可用儲存空間

許多問題是由指派給MySQL之存放區中的MySQL用盡存放區所造成(datadir MySQL組態設定,預設值為/data/mysql),或是tmpdir空間不足。 預設tmpdir (MySQL設定)是/tmpMySQL% free storage by node ​框架會檢視/, /tmp (若定義為個別掛載)和/data/mysql可用儲存空間百分比。 從MySQL 5.7版(MariaDB 10.2版)開始,未壓縮的tmp資料表會寫入檔案(ibtmp1)中tmp目錄的/data/mysql表格空間。 依預設,此檔案會無限制地自動展開。 因為它是表格空間,所以不會減少大小,而且在MySQL重新啟動時會重設為12MB。

MySQL Connections by Node

依節點的MySQL連線

MySQL Connections by Node ​框架表示資料庫節點中斷或大量連線的期間。

MySQL Node Summary

MySQL節點摘要

MySQL Node Summary ​表格顯示資料庫節點詳細資料,例如軟體版本和執行個體型別(大小)。

Galera Number of Nodes in cluster

叢集中的 Galera節點數目

Galera Number of Nodes in cluster ​框架會顯示MySQL記錄檔中的資訊。 當節點加入並離開叢集時,只會顯示所選時間範圍的訊息。 如果節點在時間範圍之前離開叢集,則該時間範圍內將不存在任何訊息。 如果您懷疑資料庫可能缺少節點,請將時間範圍擴展至較大的期間,以檢視是否可以看到其他資訊。 如果在時段內有資訊指出少於Galera叢集中的所有節點,請展開時間範圍以檢視您是否可以判斷節點何時離開叢集。

MySQL shutdowns and starts

MySQL關機並開始

MySQL shutdowns and starts ​框架會偵測節點何時關閉。 將逐出Galera個節點,並將從Galera節點自行逐出。 這通常會導致MySQL服務重新啟動。

Galera log

Galera記錄檔

Galera log ​框架顯示MySQL記錄檔中有關Galera節點、其狀態及Galera叢集狀態變更的特定訊號計數。

  • '%1047 WSREP尚未準備好節點以供應用程式使用%')做為'node_not_prep_for_use'
  • '%[ERROR] WSREP:無法從wsrep_sst_xtrabackup-v2%'讀取為'xtrabackup_read_fail'
  • '%[ERROR] WSREP:處理程式已完成,但發生錯誤: wsrep_sst_xtrabackup-v2 %')為'xtrabackup_compl_w_err'
  • '%[ERROR] WSREP: rbr write fail%')為'rbr_write_fail'
  • '%self-leave%')作為'susp_node'
  • '%members = 3/3 (已加入/總計)%')作為'3of3'
  • '%members = 2/3 (已加入/總計)%')作為'2of3'
  • '%members = 2/2%')做為'2of2'
  • '%members = 1/2%')做為'1of2'
  • '%members = 1/3%')做為'1of3'
  • '%members = 1/1%')做為'1of1'
  • '%[注意] /usr/sbin/mysqld (mysqld 10。%'),作為'sql_restart'
  • '%Quorum:沒有具有完整狀態的節點:%')為'no_node_count'
  • '%WSREP:成員0%')為'mem_0'
  • '%WSREP:成員1.0%')為'mem_1'
  • '%WSREP:成員2%')為'mem2'
  • '%WSREP:與群組同步,準備連線%')為'ready'
  • '%/usr/sbin/mysqld,版本:%')為'mysql_restart_mysql.slow'
  • '%[Note] WSREP:新叢集檢視:全域狀態:%')做為'galera_cluster_view_chng'

Galera Log by Host

依主機的Galera記錄

Galera Log by Host ​框架與​ Galera log ​框架相同,不同之處在於它是依節點劃分,以協助疑難排解。

Database performance

資料庫效能

Database performance ​框架顯示特定要求期間的資料庫效能。 您可以按一下圖表下方的彩色圖示,檢視每個量度。 在此框架中找到許多在使用New Relic監視MySQL資料庫效能時呼叫的量度。

  • average(query.queriesPerSecond)
  • average(query.slowQueriesPerSecond)
  • average(db.createdTmpDiskTablesPerSecond)
  • average(db.createdTmpFilesPerSecond)
  • average(db.tablesLocksWaitedPerSecond)
  • average(db.innodb.rowLockTimeAvg)
  • average(db.innodb.rowLockWaitsPerSecond)

Transaction Database Call Count

交易資料庫呼叫計數

Transaction Database Call Count ​框架顯示每個交易Facet進行的資料庫呼叫數目。 這似乎是以列為中心,而不是陳述式。

Cron_schedule table updates

Cron_schedule資料表更新

Cron_schedule table updates ​框架顯示所選時段內cron_schedule資料表的資料庫更新時間長度上限。

Slow Query Traces

緩慢查詢追蹤

Slow Query Traces ​框架顯示存在緩慢查詢追蹤的資料表和要求型別。 系統會為需要超過五秒的查詢交易建立緩慢的查詢追蹤。 此框架的重要內容是更新查詢。 如果資料表正由UPDATEDELETEINSERT陳述式更新,它們可能會鎖定一段時間的資料表。

如果與FOR UPDATE一起使用,甚至SELECT陳述式也可能鎖定資料列。

Datastore Operations tables

資料存放區操作資料表

Cron table change

Cron資料表變更

Cron table change ​框架會尋找「無法取得cron工作的鎖定:」錯誤訊息,以及特定的PHP記憶體錯誤和涉及cron_schedule資料表的鎖定。 如果cron_schedule資料表被鎖定(例如,被對其執行的DELETE查詢鎖定),它將封鎖其他的cron無法執行。

Deadlocks

死結

Deadlocks ​框架會檢視從MySQL記錄檔剖析的下列字串:

  • '%PHP嚴重錯誤:允許的記憶體大小為%')為php_mem_error
  • '%get lock;嘗試重新啟動交易,查詢為: DELETE FROM 'cron_schedule%') as cron_sched_lock_del
  • '% lock for cron job: indexer_reindex_all_invalid%')設為'lock_indexer_reindex_all_invalid%'
  • '%鎖定cron工作: cron_schedule%')為'lock_cron_schedule'
  • '% lock for cron job:%')作為'total_cron_lock'
  • '%General error: 1205 Lock wait timeout exceeded%')為'sql_1205_lock'
  • '%ERROR 1213 (40001):嘗試取得lock%'時發現死結),為'sql_1213_lock'
  • '%SQLSTATE[40001]:序列化失敗: 1213 Deadlock found%')為'sql_1213_lock2'
  • '%鎖定cron工作: indexer_update_all_views%'),作為'lock_indexer_update_all_views'
  • '%鎖定cron工作: sales_grid_order_invoice_async_insert%')作為'lock_sales_grid_order_invoice_async_insert',
  • '%鎖定cron工作: staging_remove_updates%')為'lock_staging_remove_updates'
  • '%鎖定cron工作: sales_grid_order_shipment_async_insert%')作為'lock_sales_grid_order_shipment_async_insert'
  • '%鎖定cron工作: amazon_payments_process_queued_refunds%')為'lock_amazon_payments_process_queued_refunds'
  • '%鎖定cron工作: sales_send_order_shipment_emails%')作為'lock_sales_send_order_shipment_emails'
  • '%鎖定cron工作: staging_synchronize_entities_period%'),作為'lock_staging_synchronize_entities_period'
  • '%鎖定cron工作: indexer_clean_all_changelogs%')為'lock_indexer_clean_all_changelogs'
  • '% lock for cron job: magento_targetrule_index_reindex%')設為'lock_magento_targetrule_index_reindex'
  • '%鎖定cron工作: newsletter_send_all%')為'lock_newsletter_send_all'
  • '%鎖定cron工作: newsletter_send_all%')為'lock_newsletter_send_all'
  • '%鎖定cron工作: sales_send_order_emails%'),作為'lock_sales_send_order_emails'
  • '%鎖定cron工作: sales_send_order_creditmemo_emails%')為'lock_sales_send_order_creditmemo_emails'
  • '%鎖定cron工作: sales_grid_order_creditmemo_async_insert%')為'lock_sales_grid_order_creditmemo_async_insert'
  • '%鎖定cron工作: bulk_cleanup%')為'lock_bulk_cleanup'
  • '%鎖定cron工作: flush_preview_quotas%')為'lock_flush_preview_quotas'
  • '%鎖定cron工作: sales_send_order_invoice_emails%'),作為'lock_sales_send_order_invoice_emails'
  • '%鎖定cron工作: sales_send_order_invoice_emails%'),作為'lock_sales_send_order_invoice_emails'
  • '%鎖定cron工作: captcha_delete_expired_images%')為'lock_captcha_delete_expired_images'
  • '%鎖定cron工作: magento_newrelicreporting_cron%')為'lock_magento_newrelicreporting_cron'
  • '%鎖定cron工作: outdoated_authentication_failures_cleanup%')為'lock_outdoated_authentication_failures_cleanup'
  • '%鎖定cron工作: send_notification%')為'lock_send_notification'
  • '%鎖定cron工作: magento_giftcardaccount_generation_codes_pool%')為'lock_magento_giftcardaccount_generation_codes_pool'
  • '%鎖定cron工作: catalog_product_frontend_actions_flush%'),作為'lock_catalog_product_frontend_actions_flush'
  • '%鎖定cron工作: mysqlmq_clean_messages%')為'mysqlmq_clean_messages'
  • '%鎖定cron工作: catalog_product_attribute_value_synchronize%')作為'lock_catalog_product_attribute_value_synchronize'
  • '%鎖定cron工作: ddg_automation_importer%'),作為'lock_ddg_automation_importer'
  • '%鎖定cron工作: ddg_automation_reviews_and_wishlist%')為'lock_ddg_automation_reviews_and_wishlist'
  • '%鎖定cron工作: captcha_delete_old_attempts%')為'lock_captcha_delete_old_attempts'
  • '%鎖定cron工作: catalog_product_outdoated_price_values_cleanup%')為'lock_catalog_product_outdoated_price_values_cleanup'
  • '%鎖定cron工作: consumers_runner%')為'lock_consumers_runner'
  • '%鎖定cron工作: ddg_automation_customer_subscriber_guest_sync%'),作為'lock_ddg_automation_customer_subscriber_guest_sync'
  • '%鎖定cron工作: get_amazon_capture_updates%')為'lock_get_amazon_capture_updates'
  • '%鎖定cron工作: get_amazon_authorization_updates%')作為'lock_send_get_amazon_authorization_updates'
  • '%鎖定cron工作: temando_process_platform_events%'),作為'lock_temando_process_platform_events'
  • '%鎖定cron工作: ddg_automation_status%'),作為'lock_ddg_automation_status'
  • '%鎖定cron工作: ddg_automation_status%'),作為'lock_ddg_automation_status'
  • '%鎖定cron工作: sales_clean_orders%')為'lock_sales_clean_orders'
  • '% lock for cron job: catalog_index_refresh_price%')設為'lock_catalog_index_refresh_price'
  • '%鎖定cron工作: magento_reward_balance_warning_notification%')為'lock_magento_reward_balance_warning_notification'
  • '%鎖定cron工作: analytics_update%')作為'lock_analytics_update'
  • '%鎖定cron工作: messagequue_clean_outdated_locks%')為'lock_messagequue_clean_outdated_locks'
  • '%鎖定cron工作: messagequue_clean_outdated_locks%')為'lock_messagequue_clean_outdated_locks'
  • '%鎖定cron工作: staging_apply_version%'),作為'lock_staging_apply_version'
  • '%鎖定cron工作: magento_reward_expire_points%'),作為'lock_magento_reward_expire_points'
  • '%鎖定cron工作: yotpo_yotpo_orders_sync%')為'lock_yotpo_yotpo_orders_sync'
  • '%鎖定cron工作: catalog_event_status_checker%'),作為'lock_catalog_event_status_checker'
  • '%鎖定cron工作: ddg_automation_campaign%'),作為'lock_ddg_automation_campaign'
  • '%鎖定cron工作: visitor_clean%')為'lock_visitor_clean'
  • '%鎖定cron工作: scconnector_verify_website%')為'lock_scconnector_verify_website'
  • '%鎖定cron工作: ddg_automation_email_templates%'),作為'lock_ddg_automation_email_templates'
  • '%鎖定cron工作: aggregate_sales_report_order_data%'),作為'lock_aggregate_sales_report_order_data'
  • '%鎖定cron工作: ddg_automation_catalog_sync%'),作為'lock_ddg_automation

DB Statistics

資料庫統計資料

DB Statistics ​框架每秒都會顯示刪除、寫入、讀取的列、更新及緩慢的查詢。

Request frequency

要求頻率

Database Errors

資料庫錯誤

Database Errors ​框架顯示各種資料庫警告和錯誤

  • '%配置給暫存資料表的記憶體大小超過innodb_buffer_pool_size%'的20%,因為'temp_tbl_buff_pool'
  • '%[ERROR] WSREP: rbr write fail%')為'rbr_write_fail'
  • '%mysqld:磁碟已滿%')做為'disk_full'
  • '%Error number 28%')作為'err_28'
  • '%rollback%')為'rollback'
  • '%資料表%'的外部索引鍵條件約束失敗)為'foreign_key_constraint'
  • '%Error_code: 1114%')為'sql_1114_full"%CRITICAL: SQLSTATE[HY000] [2006] MySQL伺服器已消失%')為'sql_gone'
  • '%SQLSTATE[HY000] [1040]連線數太多%')為'sql_1040'
  • '%CRITICAL: SQLSTATE[HY000] [2002]%')為'sql_2002'
  • '%SQLSTATE[08S01]:%')為'sql_1047'
  • '%[警告]已中止連線%')為'aborted_conn'
  • '%SQLSTATE[23000]:完整性條件約束違規:%')為'sql_23000'
  • '%1205鎖定等待逾時%')為'sql_1205'
  • '%SQLSTATE[HY000] [1049]未知的資料庫%')為'sql_1049'
  • '%SQLSTATE[42S02]:找不到基底資料表或檢視:%')為'sql_42S02'
  • '%General error: 1114%')作為'sql_1114'
  • '%SQLSTATE[40001]%')為'sql_1213'
  • '%SQLSTATE[42S22]:找不到資料行: 1054 Unknown column%')為'sq1_1054'
  • '%SQLSTATE[42000]:語法錯誤或存取違規:%')為'sql_42000'
  • '%SQLSTATE[21000]:基數違規:%')為'sql_1241'
  • '%SQLSTATE[22003]:%')為'sql_22003'
  • '%SQLSTATE[HY000] [9000]具有IP位址%的使用者端)為'sql_9000'
  • '%SQLSTATE[HY000]:一般錯誤: 2014%')為'sql_2014'
  • '%1927連線已終止%')為'sql_1927'
  • '%1062 [ERROR] InnoDB:%')做為'sql_1062_e'
  • ''%[注意] WSREP:正在將記憶體對應排清到磁碟……%')做為'mem_map_flush'
  • '%Internal MariaDB錯誤碼: 1146%')為'sql_1146'
  • '%Internal MariaDB錯誤碼: 1062%')為'sql_1062' * '%1062 [警告] InnoDB:%')為'sql_1062_w'
  • '%Internal MariaDB錯誤碼: 1064%')為'sql_1064'
  • '%InnoDB:檔案中的宣告失敗%')為'assertion_err'
  • '%mysqld_safe目前執行的處理序數目: 0%')為'mysql_oom'
  • '%[ERROR] mysqld取得signal%')為'mysql_sigterm'
  • '%1452 Cannot add%')為'sql_1452'
  • '%ERROR 1698%')做為'sql_1698'
  • '%SQLSTATE[HY000]:一般錯誤: 3%')為'cnt_wrt_tmp'
  • '%General error: 1 %')作為'sql_syntax'
  • '%42S22%')做為'sql_42S22'
  • '%InnoDB: Error (索引鍵重複)%')為'innodb_dup_key' FROM Log TIMESERIES

DB Error Table

DB錯誤資料表

DB Error Table ​框架顯示與​ Database Errors ​框架相同的資訊,但您可以依節點並以表格格式檢視它。 如需詳細資訊,請參閱MariaDB錯誤碼

Database Traces

資料庫追蹤

Database Traces ​框架會依型別顯示所選時間軸上的資料庫追蹤。

Database processes

資料庫處理序

Database processes ​框架顯示資料庫處理序、環境和節點識別碼。

MySQL Non-Sleeping Threads by Node

MySQL非睡眠的Threads,依節點

MySQL Non-Sleeping Threads by Node ​框架顯示到資料庫的連線執行緒。 此框架顯示作用中的執行緒。

MySQL Running and Sleeping Threads by environment

MySQL正在執行及睡眠的Threads (依環境)

MySQL Running and Sleeping Threads by environment ​框架同時顯示使用中及休眠的資料庫連線。 如果連線到緩慢查詢進入睡眠狀態的資料庫,就會有睡眠的連線。 休眠連線可以是被鎖定的資料列或資料表封鎖的資料庫查詢。 這些休眠連線也保持PHP工作者連線。

MySQL mem used by node

節點 使用的MySQL記憶體

MySQL mem used by node ​框架顯示MySQL的記憶體節點使用狀況。 在大型網站上,此框架可能是連續長條,且已使用大小為GB的記憶體。

Database mysql-slow.log

資料庫mysql-slow.log

Database mysql-slow.log ​框架顯示所選時間範圍內mysql-slow.log檔案中的查詢陳述式型別。

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3