No cache version.

Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

Rechercher dans le manuel MySQL

13.7.2.1 ALTER RESOURCE GROUP Syntax

  1. ALTER RESOURCE GROUP group_name
  2.     [VCPU [=] vcpu_spec [, vcpu_spec] ...]
  3.     [THREAD_PRIORITY [=] N]
  4.     [ENABLE|DISABLE [FORCE]]
  5.  
  6. vcpu_spec: {N | M - N}

ALTER RESOURCE GROUP is used for resource group management (see Section 8.12.5, “Resource Groups”). This statement alters modifiable attributes of an existing resource group. It requires the RESOURCE_GROUP_ADMIN privilege.

group_name identifies which resource group to alter. If the group does not exist, an error occurs.

The attributes for CPU affinity, priority, and whether the group is enabled can be modified with ALTER RESOURCE GROUP. These attributes are specified the same way as described for CREATE RESOURCE GROUP (see Section 13.7.2.2, “CREATE RESOURCE GROUP Syntax”). Only the attributes specified are altered. Unspecified attributes retain their current values.

The FORCE modifier is used with DISABLE. It determines statement behavior if the resource group has any threads assigned to it:

  • If FORCE is not given, existing threads in the group continue to run until they terminate, but new threads cannot be assigned to the group.

  • If FORCE is given, existing threads in the group are moved to their respective default group (system threads to SYS_default, user threads to USR_default).

The name and type attributes are set at group creation time and cannot be modified thereafter with ALTER RESOURCE GROUP.

Examples:

  • Alter a group CPU affinity:

    1. ALTER RESOURCE GROUP rg1 VCPU = 0-63;
  • Alter a group thread priority:

    1. ALTER RESOURCE GROUP rg2 THREAD_PRIORITY = 5;
  • Disable a group, moving any threads assigned to it to the default groups:

    1. ALTER RESOURCE GROUP rg3 DISABLE FORCE;

Resource group management is local to the server on which it occurs. ALTER RESOURCE GROUP statements are not written to the binary log and are not replicated.


Find a PHP function

Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-alter-resource-group.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:en Manuel MySQL : https://dev.mysql.com/

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut