vim特殊命令使用
编辑器内打开文件对比 # 进入命令行模式 1. 打开另外一个文件 上下分割 :split file2 水平分割 :vsplit file2 2. 进行文件对比 :windo diffthis 同时对两个文件进行对比 vim -d file1 file2
编辑器内打开文件对比 # 进入命令行模式 1. 打开另外一个文件 上下分割 :split file2 水平分割 :vsplit file2 2. 进行文件对比 :windo diffthis 同时对两个文件进行对比 vim -d file1 file2
排查思路 1. 通过 crash 分析内存转储文件 2. 找到内核崩溃的进程PID 3. 分析此PID的导致崩溃的模块 4. 分析出可能是因为地址空间不存在导致的 5. 分析出问题的模块对应的寄存器地址 6. 找到地址之后查看对应内存区域及其权限 准备依赖: CentOS: yum install -y crash kernel-debuginfo-$(uname -r) 分析内存...
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hi...
demao import json import logging import traceback import os import time from functools import partial from concurrent import futures from itertools import islice from typing import Any, Callable, ...
常用命令 1. 添加常用源 helm repo add stable https://kubernetes-charts.storage.googleapis.com helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com helm repo add bitnami https:...
CMDB更新模型数据 - 最原始版 验证 apollo 密码登录、token登录;configs/**接口、开放接口 apollo密码登录 data = { 'username': "apollo", 'password': self.options.apollo_passwd, 'login-submit': '登 录' } self...
curl 请求 # 请求制定服务的namespace配置 curl -sS -H "Authorization: <token>" 'https://apollo.abc.cn/openapi/v1/envs/PRO/apps/<appid>/clusters/<cluster>/namespaces/<namespace>' # 指定具体的...
授权指定用户,统一指定权限 #! /usr/bin/python import json import requests import logging import argparse # 授权token # captain_token = ("******", "token") apollo_user = "apollo" apollo_password = "******" bas...
总览 在设置大型 Elasticsearch (ES) 集群的存储配置时,你需要考虑多个方面,包括硬件资源、集群拓扑、索引和分片策略、性能调优以及监控。以下是一些关键的配置和最佳实践: 硬件选择: 存储:使用高性能的 SSDs 可以显著提高 I/O 性能,对于搜索和索引操作特别重要。 内存:确保每个节点有足够的 RAM,Elasticsearch 推...
集群简单配置 { "persistent" : { "cluster" : { "routing" : { "allocation" : { "node_concurrent_incoming_recoveries" : "4", "node_concurrent_recoveries" : "8", ...