Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Modify trove instance status through database

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Due to testing the replication function of mysql5.5, the default trove is always in BACKUP state using gtid,instance, and trove reset-status cannot be run in BACKUP state. Modify the database manually.

Modify the status_id field in the service_statuses table to 0x16 and decimal to 22

Status code view file

# trove/common/instance.py 97 line class ServiceStatuses (object): RUNNING = ServiceStatus (0x01, 'running',' ACTIVE') BLOCKED = ServiceStatus (0x02, 'blocked',' BLOCKED') PAUSED = ServiceStatus (0x03, 'paused',' SHUTDOWN') SHUTDOWN = ServiceStatus (0x04, 'shutdown',' SHUTDOWN') CRASHED = ServiceStatus (0x06, 'crashed',' SHUTDOWN') FAILED = ServiceStatus (0x08, 'failed to spawn') 'FAILED') BUILDING = ServiceStatus (0x09,' building', 'BUILD') PROMOTING = ServiceStatus (0x10,' promoting replica', 'PROMOTE') EJECTING = ServiceStatus (0x11,' ejecting replica source', 'EJECT') LOGGING = ServiceStatus (0x12,' transferring guest logs', 'LOGGING') UNKNOWN = ServiceStatus (0x16,' unknown', 'ERROR') NEW = ServiceStatus (0x17,' new', 'NEW') DELETED = ServiceStatus (0x05,' deleted') DELETED 'DELETED') FAILED_TIMEOUT_GUESTAGENT = ServiceStatus (0x18,' guestagent error', 'ERROR') INSTANCE_READY = ServiceStatus (0x19,' instance ready', 'BUILD') RESTART_REQUIRED = ServiceStatus (0x20,' restart required', 'RESTART_REQUIRED')

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report