简介
Elasticsearch是一个近乎实时(NRT)的搜索平台。这意味着从索引文档到可搜索文档的时间有一点延迟(通常是一秒)。通常有集群,节点,分片,副本等概念。
集群(cluster)集群(cluster)是一组具有相同cluster.name的节点集合,他们协同工作,共享数据并提供故障转移和扩展功能,当然一个节点也可以组成一个集群。
集群由唯一名称标识,默认情况下为“elasticsearch”。此名称很重要,因为如果节点设置为按名称加入集群的话,则该节点只能是集群的一部分。
【集群健康状态】
集群状态通过 绿,黄,红 来标识
绿色 - 一切都很好(集群功能齐全)。
黄色 - 所有数据均可用,但尚未分配一些副本(集群功能齐全)。
红色 - 某些数据由于某种原因不可用(集群部分功能)
要检查群集运行状况,我们可以在 Kibana 控制台中运行以下命令GET /_cluster/health,得到如下信息:
1234567891011121314151617{ "cluster_name": "elasticsearch", ...
低代码嵌入
在vue中嵌入低代码组件1234<k-form-build ref='student' :value="jsonData" :parameterValue="parametersValue" :disabled="currentDisable" />
jsonData是低代码组件的json配置,使用/inner/api/view/kform/get这个接口进行获取
想要低代码组件渲染的数据置于parametersVal中
完整的vue代码如下1
node版本
问题描述:
1. 拉取平台代码后,使用yarn install命令安装依赖,当前的node版本为16.17.0,但是报错
123error commander@12.0.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.17.0"error Found incompatible module.
2. 尝试升级node版本为18.12.0后,再次执行yarn install,发现出现了新的报错
12error @achrinza/node-ipc@9.2.2: The engine "node" is incompatible with this module. Expected version "8 || 10 || 12 || 14 || 16 || 17". Got "18.12.0"
3. 综上两点错误,说明升级node版本并不 ...
模板引导
点击页面设计-新增表单,选择空白模板,此时页面会跳转到’/guide/index’
在前端项目中找到’/guide/index.vue’,该页面使用<a-card卡片布局包裹了多个子组件,这里只关注<blank>组件,父组件将initialData传递给子组件
进入blank组件,观察其核心代码,其中<a-col span="19">的span表示占用该行中24份的19份,即调整宽度
1234567891011<a-row> <a-col span="5"> <a-steps v-model="current" direction="vertical"> <a-step v-for="item in steps" class="ant-steps-item" :disabled="true&quo ...
自动备份
Ubuntu服务器中定时备份数据库
编写bk-mysql.sh脚本,主要内容是进行myql dump,以及删除7天之前的备份文件,注意需要修改指定的文件路径
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152#!/bin/bash# 删除7天之前的数据库备份target_date=$(date +%Y%m%d -d '7 days ago')echo $target_date# 获取当前时间 年月 20240419current_date=$(date +%Y%m%d)echo $current_date# 备份路径,需要自己修改directory_path="/home/dell/mysql-dump"# 判断目标文件夹是否存在target_directory="$directory_path/$target_date"if [ -d "$target_directory&qu ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment