tinker

command module
v0.0.0-...-a5bc9b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

regression tools

This repository contains tools for regression testing.

Back And Recovery

Back

It will create a backup of the database and the files in /var/lib/{component}/{version}.back.

It will have some steps:

  1. The tools will annotate all component with runmode=debug.
  2. The tools will exec shell to kill 1 to stop component. The order will TiDB, PD, TiKV.
  3. The tools will cp the files in /var/lib/{component} exclude back to /var/lib/{component}/{version}.back.
  4. The tools will restart all pods. Notion: Pods will remove all runmode annotation after pods restart.
Recovery

It will recover the database and the files in /var/lib/{component}/{version}.back.

it will have some steps:

  1. The tools will annotate all component with runmode=debug.
  2. The tools will exec shell to kill 1 to stop component. The order will TiDB, PD, TiKV.
  3. The tools will cp the files in /var/lib/{component}/{version}.back to /var/lib/{component}/.
  4. The tools will restart all pods. Notion: Pods will remove all runmode annotation after pods restart.

Documentation

Overview

Copyright 2021 TiKV Project Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
ctl
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL