setup_actors table contains
information that determines whether to enable monitoring and
historical event logging for new foreground server threads
(threads associated with client connections). This table has a
maximum size of 100 rows by default. To change the table size,
system variable at server startup.
For each new foreground thread, the Performance Schema matches
the user and host for the thread against the rows of the
setup_actors table. If a row from
that table matches, its
HISTORY column values are used to set the
columns, respectively, of the
threads table row for the thread.
This enables instrumenting and historical event logging to be
applied selectively per host, user, or account (user and host
combination). If there is no match, the
columns for the thread are set to
For background threads, there is no associated user.
YES by default and
setup_actors is not consulted.
The initial contents of the
setup_actors table match any user
and host combination, so monitoring and historical event
collection are enabled by default for all foreground threads:
mysql> SELECT * FROM performance_schema.setup_actors; +------+------+------+---------+---------+ | HOST | USER | ROLE | ENABLED | HISTORY | +------+------+------+---------+---------+ | % | % | % | YES | YES | +------+------+------+---------+---------+
Modifications to the
table affect only foreground threads created subsequent to the
modification, not existing threads. To affect existing
threads, modify the
HISTORY columns of
threads table rows.
setup_actors table has these
The host name. This should be a literal name, or
'%'to mean “any host.”
The user name. This should be a literal name, or
'%'to mean “any user.”
Whether to enable instrumentation for foreground threads matched by the row. The value is
Whether to log historical events for foreground threads matched by the row. The value is