salt icon indicating copy to clipboard operation
salt copied to clipboard

Fix mysql table size for salt_events

Open junster1 opened this issue 11 years ago • 3 comments

The default size of varchar(1024) for the data field in the salt_events table isn’t large enough to store many events including the presence events when you have lots of minions attatched to that syndic or master. We altered the table to use mediumtext instead.

describe salt_events; +------------+--------------+------+-----+-------------------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+--------------+------+-----+-------------------+----------------+ | id | bigint(20) | NO | PRI | NULL | auto_increment | | tag | varchar(255) | NO | MUL | NULL | | | data | mediumtext | NO | | NULL | | | alter_time | timestamp | NO | | CURRENT_TIMESTAMP | | | master_id | varchar(255) | NO | | NULL | | +------------+--------------+------+-----+-------------------+----------------+

junster1 avatar Sep 28 '15 00:09 junster1

@junster1, thanks for the report.

jfindlay avatar Sep 28 '15 16:09 jfindlay

@sejeff @jdconti

junster1 avatar Sep 28 '15 19:09 junster1

Pull request #27472 was merged, closing.

terminalmage avatar Sep 30 '15 19:09 terminalmage