当前位置:网站首页>Record an ES accident
Record an ES accident
2022-06-11 04:22:00 【bohu83】
Judging from the alarm , Service message interface timeout , meanwhile es The error log will also prompt :
Caused by: org.elasticsearch.common.util.concurrent.EsRejectedExecutionException: rejected execution of [email protected] on EsThreadPoolExecutor[search, queue capacity
= 1000, [email protected]159058[Running, pool size = 49, active threads = 49, queued tasks = 1000, completed tasks = 23765969104]]
at org.elasticsearch.common.util.concurrent.EsAbortPolicy.rejectedExecution(EsAbortPolicy.java:50) ~[elasticsearch-5.2.2.jar:5.2.2]
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[?:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[?:1.8.0_71]
at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.doExecute(EsThreadPoolExecutor.java:94) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor.execute(EsThreadPoolExecutor.java:89) ~[elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.transport.TcpTransport.handleRequest(TcpTransport.java:1445) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.transport.TcpTransport.messageReceived(TcpTransport.java:1329) [elasticsearch-5.2.2.jar:5.2.2]
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.channelRead(Netty4MessageChannelHandler.java:74) [transport-netty4-5.2.2.jar:5.2.2]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) [netty-codec-4.1.7.Final.jar:4.1.7.Final]
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:280) [netty-codec-4.1.7.Final.jar:4.1.7.Final]
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:396) [netty-codec-4.1.7.Final.jar:4.1.7.Final]
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) [netty-codec-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) ~[netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) ~[netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) ~[netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86) ~[netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:341) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:349) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:642) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:527) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:481) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:441) [netty-transport-4.1.7.Final.jar:4.1.7.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-common-4.1.7.Final.jar:4.1.7.Final]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]Normal operation :
restart es,es Client services , It didn't take long to report mistakes .
Shows that the cluster load is high ,70%, Usually in 10% following , Status as red, It means that some main partitions are unavailable .
Emergency selection of degraded operation , Exclude hundreds of historical data G After the large partition of .
es 5.2 ,client yes TransportClient , Similar to singleton mode , Exclusion is client Problems caused by configuration
reflection :
The specific index of the business corresponding to the high system load is still not confirmed , And specific query statements . Not enough at the bottom .
Supplementary information :
1 Why can't you adjust it at will es Thread pool parameters of
In the case of a large number of concurrent queries , The access traffic exceeds that of a single in the cluster Elasticsearch The processing power of the instance ,Elasticsearch The server will trigger a protective mechanism , This depends on the hardware configuration cpu Is related to the kernel number of , The system crashes when it is adjusted to hundreds of estimates .
Focus on :
Indexes (index): Mainly index data and delete data operation
Search for (search): It's mainly about getting , Statistics and search operations
The batch operation (bulk): It is mainly the batch operation of index
to update (refresh): It's mainly the update operation
The official website is as follows :
A node uses several thread pools to manage memory consumption. Queues associated with many of the thread pools enable pending requests to be held instead of discarded.
There are several thread pools, but the important ones include:
genericFor generic operations (for example, background node discovery). Thread pool type is
scaling.
searchFor count/search/suggest operations. Thread pool type is
fixedwith a size ofint((# of allocated processors* 3) / 2) + 1, and queue_size of1000.
search_throttledFor count/search/suggest/get operations on
search_throttled indices. Thread pool type isfixedwith a size of1, and queue_size of100.
search_coordinationFor lightweight search-related coordination operations. Thread pool type is
fixedwith a size of a max ofmin(5, (# of allocated processors) / 2), and queue_size of1000.
getFor get operations. Thread pool type is
fixedwith a size of # of allocated processors, queue_size of1000.
analyzeFor analyze requests. Thread pool type is
fixedwith a size of1, queue size of16.
writeFor single-document index/delete/update and bulk requests. Thread pool type is
fixedwith a size of # of allocated processors, queue_size of10000. The maximum size for this pool is1 +# of allocated processors.
snapshotFor snapshot/restore operations. Thread pool type is
scalingwith a keep-alive of5mand a max ofmin(5, (# of allocated processors) / 2).
snapshot_metaFor snapshot repository metadata read operations. Thread pool type is
scalingwith a keep-alive of5mand a max ofmin(50, (# of allocated processors* 3)).
warmerFor segment warm-up operations. Thread pool type is
scalingwith a keep-alive of5mand a max ofmin(5, (# of allocated processors) / 2).
refreshFor refresh operations. Thread pool type is
scalingwith a keep-alive of5mand a max ofmin(10, (# of allocated processors) / 2).
fetch_shard_startedFor listing shard states. Thread pool type is
scalingwith keep-alive of5mand a default maximum size of2 *# of allocated processors.
fetch_shard_storeFor listing shard stores. Thread pool type is
scalingwith keep-alive of5mand a default maximum size of2 *# of allocated processors.
flushFor flush and translog
fsyncoperations. Thread pool type isscalingwith a keep-alive of5mand a default maximum size ofmin(5, (# of allocated processors) / 2).
force_mergeFor force merge operations. Thread pool type is
fixedwith a size of 1 and an unbounded queue size.
managementFor cluster management. Thread pool type is
scalingwith a keep-alive of5mand a default maximum size of5.
system_readFor read operations on system indices. Thread pool type is
fixedwith a default maximum size ofmin(5, (# of allocated processors) / 2).
system_writeFor write operations on system indices. Thread pool type is
fixedwith a default maximum size ofmin(5, (# of allocated processors) / 2).
system_critical_readFor critical read operations on system indices. Thread pool type is
fixedwith a default maximum size ofmin(5, (# of allocated processors) / 2).
system_critical_writeFor critical write operations on system indices. Thread pool type is
fixedwith a default maximum size ofmin(5, (# of allocated processors) / 2).
watcherFor watch executions. Thread pool type is
fixedwith a default maximum size ofmin(5 * (# of allocated processors), 50)and queue_size of1000.
边栏推荐
- Embedded basic interface SDIO
- Guanghetong officially released the sc126 series of intelligent modules to promote more intelligent connection
- Market prospect analysis and Research Report of surround packing machine in 2022
- 直播助力杭州电商独角兽冲击上市,分账系统重构电商交易新格局
- Guanghetong won the "science and Technology Collaboration Award" of Hello travel, driving two rounds of green industries to embrace digital intelligence transformation
- Guanghetong LTE CAT6 module fm101-cg, which supports CBRS band, took the lead in obtaining FCC certification
- AI助力,释放法务势能!iTerms合同智审系统重磅发布
- 你知道MallBook分账与银行分账的区别吗?
- JVM(6):Slot变量槽、操作数栈、代码追踪、栈顶缓存技术
- [laser principle and application-2]: key domestic laser brands
猜你喜欢

Cloud broadcast alert, guanghetong helps intelligent camera to build a "river protection" drowning prevention system

司马炎爷爷 告诉你什么叫做内卷!

七个好用的装饰器

Unity map mapping

直播助力杭州电商独角兽冲击上市,分账系统重构电商交易新格局

AI助力,释放法务势能!iTerms合同智审系统重磅发布

一款自适应的聊天网站-匿名在线聊天室PHP源码
![[server data recovery] data recovery case of RAID5 crash of buddy storage](/img/c4/681c542310f05192bd14757965ef0d.png)
[server data recovery] data recovery case of RAID5 crash of buddy storage

Guanghetong launched a new generation of 3GPP R16 industrial 5g module fg160 engineering sample

SQL injection correlation analysis
随机推荐
Unity 遮挡剔除
Guanghetong "carbon" seeking green sharing 5g/lte module solution for two rounds of travel
Do you know the difference between mallbook ledger and bank ledger?
Guanghetong 5g module fg650-cn and fm650-cn series are produced in full scale, accelerating the efficient implementation of 5g UWB applications
The live broadcast helped Hangzhou e-commerce Unicorn impact the listing, and the ledger system restructured the new pattern of e-commerce transactions
Guanghetong officially released the sc126 series of intelligent modules to promote more intelligent connection
Cloud broadcast alert, guanghetong helps intelligent camera to build a "river protection" drowning prevention system
未来已来,5G-Advanced时代开启
Unity Editor Extension save location
Personalized use of QT log module
Feature selection algorithm based on bare bones particleswarm optimization
Unity 编辑器扩展 保存位置
众昂矿业:氟化工是萤石的主要消耗领域
meedu知识付费解决方案 v4.5.4源码
Grandpa simayan told you what is called inside roll!
A Security Analysis Of Browser Extensions
直播助力杭州电商独角兽冲击上市,分账系统重构电商交易新格局
Guanghetong LTE CAT6 module fm101-cg, which supports CBRS band, took the lead in obtaining FCC certification
d结构用作多维数组的索引
Embedded basic interface-i2s