|
@@ -1,26 +1,24 @@
|
|
|
// 新增某字段mapping
|
|
|
-curl -XPUT http://127.0.0.1:19805/forecast_v1/_mapping -u jianyuGr:we3g8glKfe# -H 'Content-Type: application/json' -d '
|
|
|
+curl -XPUT http://127.0.0.1:19905/bidding_customer_v1/_mapping -u jybid:Top2023_JEB01i@31 -H 'Content-Type: application/json' -d '
|
|
|
{
|
|
|
"properties": {
|
|
|
- "budget": {
|
|
|
- "type": "double"
|
|
|
- },
|
|
|
- "bidamount": {
|
|
|
- "type": "double"
|
|
|
- },
|
|
|
- "sortprice": {
|
|
|
- "type": "double"
|
|
|
- }
|
|
|
+ "businesstype": {
|
|
|
+ "type": "keyword"
|
|
|
+ }
|
|
|
}
|
|
|
}'
|
|
|
|
|
|
// 索引添加别名
|
|
|
-curl -H 'Content-Type: application/json' -u jybid:Top2023_JEB01i@31 -XPOST http://127.0.0.1:19905/_aliases -d '
|
|
|
+curl -H 'Content-Type: application/json' -XPOST http://192.168.3.241:9205/_aliases -d '
|
|
|
{
|
|
|
"actions": [
|
|
|
+ { "remove": {
|
|
|
+ "alias": "bidding_customer",
|
|
|
+ "index": "bidding_customer_v1"
|
|
|
+ }},
|
|
|
{ "add": {
|
|
|
- "alias": "bidding_pre",
|
|
|
- "index": "bidding_20231120"
|
|
|
+ "alias": "bidding_customer",
|
|
|
+ "index": "bidding_customer_v2"
|
|
|
}}
|
|
|
]
|
|
|
}'
|
|
@@ -87,7 +85,7 @@ curl -XPUT "http://127.0.0.1:19805/bidding/_settings" -u es_all:TopJkO2E_d1x -H
|
|
|
}'
|
|
|
|
|
|
//开启节点平衡
|
|
|
-curl -XPUT http://127.0.0.1:19805/_cluster/settings -u ianyu:KHiwdi490Sss# -H 'content-Type:application/json' -d'{
|
|
|
+curl -XPUT http://127.0.0.1:19908/_cluster/settings -u jybid:Top2023_JEB01i@31 -H 'content-Type:application/json' -d'{
|
|
|
"transient" : {
|
|
|
"cluster.routing.allocation.enable" : "none"
|
|
|
}
|
|
@@ -96,7 +94,7 @@ curl -XPUT http://127.0.0.1:19805/_cluster/settings -u ianyu:KHiwdi490Sss# -H 'c
|
|
|
//关闭节点平衡
|
|
|
curl -XPUT http://127.0.0.1:19905/_cluster/settings -u jybid:Top2023_JEB01i@31 -H 'content-Type:application/json' -d'{
|
|
|
"transient" : {
|
|
|
- "cluster.routing.allocation.enable" : "all"
|
|
|
+ "cluster.routing.allocation.enable" : "none"
|
|
|
}
|
|
|
}'
|
|
|
//开启节点平衡
|