نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: my.cnf

  1. #1
    عضو جدید
    تاریخ عضویت
    Mar 2019
    نوشته ها
    4
    تشکر تشکر کرده 
    0
    تشکر تشکر شده 
    0
    تشکر شده در
    0 پست

    پیش فرض my.cnf

    سلام
    اطلاعات زیر در mysql tunner چک کردم.
    لطفا یک تنظیم برای my.cnf میتونید برام بنویسید؟
    سرور 16 گیگ رم و 300 تا سایت
    لودسرور هی میره بالا روی 400 روزی دو سه بار
    میخوام محدود کنم این مای اسکیو ال رو









    [--] Skipped version check for MySQLTuner script
    [OK] Currently running supported MySQL version 10.2.23-MariaDB
    [OK] Operating on 64-bit architecture


    -------- Log file Recommendations ------------------------------------------------------------------
    [--] Log file: /var/lib/mysql/xxx.exexex.err(53M)
    [OK] Log file /var/lib/mysql/xxx.exexex.err exists
    [OK] Log file /var/lib/mysql/xxx.exexex.err is readable.
    [OK] Log file /var/lib/mysql/xxx.exexex.err is not empty
    [!!] Log file /var/lib/mysql/xxx.exexex.err is bigger than 32 Mb
    [!!] /var/lib/mysql/xxx.exexex.err contains 381859 warning(s).
    [!!] /var/lib/mysql/xxx.exexex.err contains 60010 error(s).




    -------- Storage Engine Statistics -----------------------------------------------------------------
    [--] Status: +Aria +CSV +InnoDB +MEMORY +MRG_MyISAM +MyISAM +PERFORMANCE_SCHEMA +SEQUENCE
    [--] Data in MyISAM tables: 6.3G (Tables: 12834)
    [--] Data in InnoDB tables: 9.3G (Tables: 22471)
    [--] Data in MEMORY tables: 0B (Tables: 254)
    [OK] Total fragmented tables: 0


    -------- Analysis Performance Metrics --------------------------------------------------------------
    [--] innodb_stats_on_metadata: OFF
    [OK] No stat updates during querying INFORMATION_SCHEMA.


    -------- Security Recommendations ------------------------------------------------------------------
    [OK] There are no anonymous accounts for any database users
    [OK] All database users have passwords assigned
    [!!] User 'rorastyl_rosasty@x.x.x.x.x' has user name as password.
    [!!] User 'rorastyl_rosasty@x.x.x.x.x' has user name as password.
    [!!] User 'rorastyl_rosasty@xxxxxxxx' has user name as password.
    [!!] User 'rorastyl_rosasty@localhost' has user name as password.
    [!!] User 'rorastyl_rosasty@xxx.exexex.com' has user name as password.
    [!!] User 'rorastyl_rosasty@xxx.exexex.com' has user name as password.
    [!!] User 'rorastyl_rosasty@xxx.exexex.com' has user name as password.
    [!!] User 'alroncoi@%' does not specify hostname restrictions.
    [!!] User 'alroncoi_asadbt@%' does not specify hostname restrictions.
    [!!] User 'alroncoi_smDb@%' does not specify hostname restrictions.
    [!!] There is no basic password file list!


    -------- CVE Security Recommendations --------------------------------------------------------------
    [--] Skipped due to --cvefile option undefined


    -------- Performance Metrics -----------------------------------------------------------------------
    [--] Up for: 19m 22s (153K q [132.482 qps], 4K conn, TX: 901M, RX: 107M)
    [--] Reads / Writes: 94% / 6%
    [--] Binary logging is disabled
    [--] Physical Memory : 15.6G
    [--] Max MySQL memory : 856.4M
    [--] Other process memory: 0B
    [--] Total buffers: 417.0M global + 2.9M per thread (151 max threads)
    [--] P_S Max memory usage: 0B
    [--] Galera GCache Max memory usage: 0B
    [OK] Maximum reached memory usage: 507.2M (3.18% of installed RAM)
    [OK] Maximum possible memory usage: 856.4M (5.36% of installed RAM)
    [OK] Overall possible memory usage with other process is compatible with memory available
    [OK] Slow queries: 0% (4/153K)
    [OK] Highest usage of available connections: 20% (31/151)
    [OK] Aborted connections: 1.50% (64/4276)
    [!!] name resolution is active : a reverse name resolution is made for each new connection and can reduce performance
    [!!] Query cache may be disabled by default due to mutex contention.
    [!!] Query cache efficiency: 0.0% (0 cached / 126K selects)
    [OK] Query cache prunes per day: 0
    [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 25K sorts)
    [!!] Joins performed without indexes: 542
    [!!] Temporary tables created on disk: 53% (7K on disk / 14K total)
    [OK] Thread cache hit rate: 99% (32 created / 4K connections)
    [OK] Table cache hit rate: 52% (2K open / 3K opened)
    [OK] Open file limit used: 2% (1K/50K)
    [OK] Table locks acquired immediately: 99% (66K immediate / 66K locks)


    -------- Performance schema ------------------------------------------------------------------------
    [--] Performance schema is disabled.
    [--] Memory used by P_S: 0B
    [--] Sys schema is installed.


    -------- ThreadPool Metrics ------------------------------------------------------------------------
    [--] ThreadPool stat is enabled.
    [--] Thread Pool Size: 8 thread(s).
    [--] Using default value is good enough for your version (10.2.23-MariaDB)


    -------- MyISAM Metrics ----------------------------------------------------------------------------
    [!!] Key buffer used: 22.8% (30M used / 134M cache)
    [OK] Key buffer size / total MyISAM indexes: 128.0M/599.8M
    [OK] Read Key buffer hit rate: 98.8% (1M cached / 13K reads)
    [!!] Write Key buffer hit rate: 88.9% (7K cached / 6K writes)


    -------- InnoDB Metrics ----------------------------------------------------------------------------
    [--] InnoDB is enabled.
    [--] InnoDB Thread Concurrency: 0
    [OK] InnoDB File per table is activated
    [!!] InnoDB buffer pool / data size: 128.0M/9.3G
    [!!] Ratio InnoDB log file size / InnoDB Buffer pool size (75 %): 48.0M * 2/128.0M should be equal to 25%
    [OK] InnoDB buffer pool instances: 1
    [--] Number of InnoDB Buffer Pool Chunk : 1 for 1 Buffer Pool Instance(s)
    [OK] Innodb_buffer_pool_size aligned with Innodb_buffer_pool_chunk_size & Innodb_buffer_pool_instances
    [OK] InnoDB Read buffer efficiency: 99.06% (34807202 hits/ 35138366 total)
    [!!] InnoDB Write Log efficiency: 76.99% (9825 hits/ 12761 total)
    [OK] InnoDB log waits: 0.00% (0 waits / 2936 writes)


    -------- AriaDB Metrics ----------------------------------------------------------------------------
    [--] AriaDB is enabled.
    [OK] Aria pagecache size / total Aria indexes: 128.0M/1B
    [OK] Aria pagecache hit rate: 99.2% (756K cached / 5K reads)


    -------- TokuDB Metrics ----------------------------------------------------------------------------
    [--] TokuDB is disabled.


    -------- XtraDB Metrics ----------------------------------------------------------------------------
    [--] XtraDB is disabled.


    -------- Galera Metrics ----------------------------------------------------------------------------
    [--] Galera is disabled.


    -------- Replication Metrics -----------------------------------------------------------------------
    [--] Galera Synchronous replication: NO
    [--] No replication slave(s) for this server.
    [--] Binlog format: MIXED
    [--] XA support enabled: ON
    [--] Semi synchronous replication Master: Not Activated
    [--] Semi synchronous replication Slave: Not Activated
    [--] This is a standalone server


    -------- Recommendations ---------------------------------------------------------------------------
    General recommendations:
    /var/lib/mysql/xxx.exexexex.com.err is > 32Mb, you should analyze why or implement a rotation log strategy such as logrotate!
    Control warning line(s) into /var/lib/mysql/xxx.exexexex.com.err file
    Control error line(s) into /var/lib/mysql/xxx.exexexex.com.err file
    Set up a Secure Password for user@host ( SET PASSWORD FOR 'user'@'SpecificDNSorIp' = PASSWORD('secure_password'); )
    Restrict Host for user@% to user@SpecificDNSorIp
    MySQL was started within the last 24 hours - recommendations may be inaccurate
    Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1
    Adjust your join queries to always utilize indexes
    When making adjustments, make tmp_table_size/max_heap_table_size equal
    Reduce your SELECT DISTINCT queries which have no LIMIT clause
    Performance schema should be activated for better diagnostics
    Before changing innodb_log_file_size and/or innodb_log_files_in_group read this: https://bit.ly/2TcGgtU
    Variables to adjust:
    query_cache_size (=0)
    query_cache_type (=0)
    query_cache_limit (> 1M, or use smaller result sets)
    join_buffer_size (> 256.0K, or always use indexes with JOINs)
    tmp_table_size (> 16M)
    max_heap_table_size (> 16M)
    performance_schema = ON enable PFS
    innodb_buffer_pool_size (>= 9.3G) if possible.
    innodb_log_file_size should be (=16M) if possible, so InnoDB total log files size equals to 25% of buffer pool size.
    ویرایش توسط shayanxero : April 7th, 2019 در ساعت 21:32

  2. # ADS




     

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

کلمات کلیدی این موضوع

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •