Hi,Presumably, if the server is using too much ram it will a) crash and leave a stack trace (not happening) or b) invoke the OOMPK which leaves a trace in syslog, which also, presumably, is not happening, since she can find no trace of OOMPK activity.So memory is a good guess (output of free -m would be useful) I doubt it is memory related do to lack of evidence for it.--JustinOn Tue, Mar 3, 2015 at 9:58 AM, jocelyn fournier <jocelyn.fournier@gmail.com> wrote:Hi,
No variables to tweak the tokudb memory allocation ?
By default tokudb_cache_size takes half of the total system memory.
With 6G allocated to InnoDB buffer pool, and 1G to the MyISAM key buffer, are you sure you have enough memory for TokuDB ?
Jocelyn
Le 03/03/2015 17:37, Gabriel Sosa a écrit :
@joocelyn Here is the my.cfg file
@justin I will check that post. Thanks
[mysqld]
# -------------------------------------------------------------------------------# ++++ General# -------------------------------------------------------------------------------datadir = /var/lib/mysql/datapid-file = /var/run/mysqld/mysqld.pidsocket = /var/lib/mysql/mysql.socktmpdir = /var/lib/mysql/tmpport = 3306
# -------------------------------------------------------------------------------# ++++ Logging# -------------------------------------------------------------------------------log-error = /var/lib/mysql/log/mysqld-error.loglong_query_time = 10slow-query-log-file = /var/lib/mysql/log/mysqld-queries_slow.loglog-slave-updateslog-bin = /var/lib/mysql/log/bin/slave-binlog-warnings = 1
max_relay_log_size = 200Mrelay_log_space_limit = 25000M
# -------------------------------------------------------------------------------# ++++ Network# -------------------------------------------------------------------------------max_connections = 3000max_connect_errors = 1000wait_timeout = 120connect_timeout = 30interactive_timeout = 3600slave_net_timeout = 120back_log = 50max_allowed_packet = 128M
# -------------------------------------------------------------------------------# ++++ Misc# -------------------------------------------------------------------------------# Text Searchsft_min_word_len = 2plugin-load = ha_tokudb
# -------------------------------------------------------------------------------# ++++ Threads# -------------------------------------------------------------------------------thread_concurrency = 8thread_cache = 64
# -------------------------------------------------------------------------------# ++++ Memory# -------------------------------------------------------------------------------# Tablestable_cache = 4096tmp_table_size = 256M# Memory per Threadsort_buffer_size = 8Mread_buffer_size = 4Mread_rnd_buffer_size = 16M# Query Cachequery_cache_type = 1query_cache_limit = 2Mquery_cache_size = 64M
# -------------------------------------------------------------------------------# ++++ MyISAM Parameters# -------------------------------------------------------------------------------key_buffer_size = 1024Mmyisam_sort_buffer_size = 64Mmyisam_recover = FORCE,BACKUP
# -------------------------------------------------------------------------------# ++++ InnoDB Parameters# -------------------------------------------------------------------------------# Generalinnodb_data_home_dir = /var/lib/mysql/innodbinnodb_log_group_home_dir = /var/lib/mysql/innodblogsinnodb_file_per_tableinnodb_data_file_path = ibdata1:100M:autoextendinnodb_status_file = ib_statusinnodb_autoextend_increment = 10Minnodb_support_xa = 0innodb_thread_concurrency = 8innodb_flush_method = O_DIRECTinnodb_flush_log_at_trx_commit = 2# Memoryinnodb_buffer_pool_size = 6Ginnodb_additional_mem_pool_size = 8Minnodb_open_files = 512# Logginginnodb_log_buffer_size = 8Minnodb_log_file_size = 256Minnodb_log_files_in_group = 2
# -------------------------------------------------------------------------------# ++++ Replication : SLAVE Profile# -------------------------------------------------------------------------------#skip-slave-startserver-id = 124388relay-log = /var/lib/mysql/log/replication/slave-binrelay-log-info-file = /var/lib/mysql/log/replication/slave-log.infomaster-info-file = /var/lib/mysql/log/replication/master-log.infomax_binlog_size = 20971520
read-only = 1
[mysqldump]quickmax_allowed_packet = 128M
[isamchk]key_buffer = 256Msort_buffer_size = 256Mread_buffer = 2Mwrite_buffer = 2M
[myisamchk]key_buffer = 256Msort_buffer_size = 256Mread_buffer = 2Mwrite_buffer = 2M
[mysqlhotcopy]interactive-timeout
On Tue, Mar 3, 2015 at 12:56 PM, Justin Swanhart <greenlion@gmail.com> wrote:
Hi,
You might try to find the source of the termination with this:
On Tue, Mar 3, 2015 at 8:45 AM, jocelyn fournier <jocelyn.fournier@gmail.com> wrote:
Hi,
Could you send your my.cnf ?
Thanks,
Jocelyn
Le 03/03/2015 16:24, Gabriel Sosa a écrit :
Hello,
I've been a proudly user of mariadb 5.5.x for a long time now but given the nice feature setI decided to give mariadb 10.x a try.
I took one of our current slaves running mariadb 5.5.x (on centos 6.5) and followed the upgrade steps using yum and ran *mysql_upgrade*. The upgrade ran without any trouble...then I moved a huge table (about 1B records right now) from InnoDB to TokuDB.
Now, every couple of hours I find that the replication is far behind the master and the reason is because this server keeps checking tables marked as crashed....
I can't seems to find any indicator of OOM killer in the system logs NOR anything related to that in the mysql log, the only clue I have is:
---------------
150303 10:08:57 mysqld_safe Number of processes running now: 0150303 10:08:57 mysqld_safe mysqld restarted150303 10:08:58 [Warning] 'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.150303 10:08:59 [Warning] option 'innodb-status-file': boolean value 'ib_status' wasn't recognized. Set to OFF.150303 10:08:59 [Warning] option 'innodb-autoextend-increment': unsigned value 10485760 adjusted to 1000150303 10:08:59 [Note] InnoDB: Using mutexes to ref count buffer pool pages150303 10:08:59 [Note] InnoDB: The InnoDB memory heap is disabled150303 10:08:59 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins150303 10:08:59 [Note] InnoDB: Memory barrier is not used150303 10:08:59 [Note] InnoDB: Compressed tables use zlib 1.2.3150303 10:08:59 [Note] InnoDB: Using Linux native AIO150303 10:08:59 [Note] InnoDB: Using CPU crc32 instructions150303 10:08:59 [Note] InnoDB: Initializing buffer pool, size = 6.0G150303 10:08:59 [Note] InnoDB: Completed initialization of buffer pool150303 10:08:59 [Note] InnoDB: Highest supported file format is Barracuda.150303 10:08:59 [Note] InnoDB: Log scan progressed past the checkpoint lsn 14178608217047150303 10:08:59 [Note] InnoDB: Database was not shutdown normally!150303 10:08:59 [Note] InnoDB: Starting crash recovery.150303 10:08:59 [Note] InnoDB: Reading tablespace information from the .ibd files...150303 10:09:05 [Note] InnoDB: Restoring possible half-written data pages150303 10:09:05 [Note] InnoDB: from the doublewrite buffer...InnoDB: Doing recovery: scanned up to log sequence number 14178613459456InnoDB: Doing recovery: scanned up to log sequence number 14178618702336InnoDB: Doing recovery: scanned up to log sequence number 14178623945216InnoDB: Doing recovery: scanned up to log sequence number 14178629188096InnoDB: Doing recovery: scanned up to log sequence number 14178634430976InnoDB: Doing recovery: scanned up to log sequence number 14178639673856InnoDB: Doing recovery: scanned up to log sequence number 14178644916736........................150303 10:09:14 [Note] InnoDB: Starting an apply batch of log records to the database...InnoDB: Progress in percent: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99InnoDB: Apply batch completedInnoDB: In a MySQL replication slave the last master binlog fileInnoDB: position 0 16433109, file name slave-bin.852141InnoDB: Last MySQL binlog file position 0 16784214, file name /var/lib/mysql/log/bin/slave-bin.005211150303 10:09:34 [Note] InnoDB: 128 rollback segment(s) are active.150303 10:09:34 [Note] InnoDB: Waiting for purge to start150303 10:09:34 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.22-72.0 started; log sequence number 14178834821658Tue Mar 3 10:09:36 2015 TokuFT recovery starting in env /var/lib/mysql/data/Tue Mar 3 10:09:36 2015 TokuFT recovery scanning backward from 1330297Tue Mar 3 10:09:36 2015 TokuFT recovery bw_end_checkpoint at 1330297 timestamp 1425395277901416 xid 1330281 (bw_newer)Tue Mar 3 10:09:36 2015 TokuFT recovery bw_begin_checkpoint at 1330281 timestamp 1425395273487081 (bw_between)Tue Mar 3 10:09:36 2015 TokuFT recovery turning around at begin checkpoint 1330281 time 4414335Tue Mar 3 10:09:36 2015 TokuFT recovery starts scanning forward to 1330297 from 1330281 left 16 (fw_between)Tue Mar 3 10:09:36 2015 TokuFT recovery closing 14 dictionariesTue Mar 3 10:09:36 2015 TokuFT recovery making a checkpointTue Mar 3 10:09:36 2015 TokuFT recovery done150303 10:09:36 [Note] Recovering after a crash using /var/lib/mysql/log/bin/slave-bin
---------------
The odd thing is that the 5.5.x version was working just fine (since about a year) in the same hardware...nothing changed in that front.
Any clue?
Thank you in advance
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help : https://help.launchpad.net/ListHelp
--
Gabriel Sosa
Sometimes the questions are complicated and the answers are simple. -- Dr. Seuss