当前位置:网站首页>Es source code reading (I) "suggestions collection"
Es source code reading (I) "suggestions collection"
2022-07-25 08:40:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
Start process analysis :
entrance :org.elasticsearch.bootstrap.Elasticsearch->org.elasticsearch.bootstrap.Bootstrap->
Build instance -> Write process number -> Initialize configuration file -> Initialize the setting instance -> function -> Turn off processing
In the process of initializing and setting the instance Initialize with the initialized configuration file node example , And set the closing processing . Initializing node In the process , Initializing is InternalNode example . Among them start In the method Use guice frame , Load different modules . First load Discovery.class example , Then set its routing service . According to the configuration, you can generate LocalDiscovery and ZenDiscovery. Then initialize MappingUpdateAction. Start the related thread . Then load... In turn :IndicesService, and IndexingMemoryController,IndicesClusterStateService,IndicesTTLService RiversManager,SnapshotsService, TransportService Start a series of worker threads . ClusterService ,RoutingService,SearchService,MonitorService,RestController.
LocalGatewayAllocator initialization
start-up DiscoveryService Start the related thread , initialization GatewayService, start-up HTTPServer Start the related thread , initialization BulkUdpService, initialization ResourceWatcherService, initialization TribeService All the above components are set to the startup state .
When Es When processing a request , Relevant... Will be created according to the request EVENT, Then relate it to a series of listener The combination is handed over to the thread pool for execution , Total execution process , Will traverse each listener, The parameter passed is Event, Then do something about it .
Next, we will analyze the source code in combination with the actual instance when creating the index .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/108841.html Link to the original text :https://javaforall.cn
边栏推荐
- [shader realizes shadow projection effect _shader effect Chapter 8]
- Wechat reservation applet graduation design of applet completion works (1) development outline
- 【黑马程序员】Redis学习笔记004:主从复制+哨兵模式+集群
- @Implementation principle of Autowired annotation
- JS typewriter animation JS special effect plug-in autotyperjs
- Freemaker template engine
- Keep your Eyes on the Lane: Real-time Attention-guided Lane Detection
- 第3章业务功能开发(修改线索,数据回显并修改数据)
- [dark horse programmer] redis learning notes 003: redis transactions
- IDEA下依赖冲突解决方法
猜你喜欢

Foundation 31: Selenium positioning dynamic ID element

How to do the game plug-in?
![[dark horse programmer] redis learning notes 001: introduction to redis + five basic data types](/img/f7/9f43cd964a671f3b53337999332280.png)
[dark horse programmer] redis learning notes 001: introduction to redis + five basic data types

PHP reports an error: classes\phpexcel\cell php Line(594) Invalid cell coordinate ESIGN1
![[dark horse programmer] redis learning notes 004: master-slave replication + sentinel mode + cluster](/img/d8/74cc67240719867cdeceab2cda533f.png)
[dark horse programmer] redis learning notes 004: master-slave replication + sentinel mode + cluster

Implementation of depth first and breadth first traversal of binary tree

Redis learning

英特尔就产品延误向Xe HPG寻宝游戏获奖者道歉并公布奖品样貌

Chapter 3 business function development (realize the real-time response of the select all button)

聊下自己转型测试开发的历程
随机推荐
Redis learning
[untitled]
IP command usage details
Wechat Reservation Reservation of applet completion works applet graduation project (8) graduation project thesis template
Rstudio shows that it can't connect to the web page, or it has a new website.
Online bookstore system based on jsp+servlet+mysql
Huawei device remote login (Telnet, SSH) configuration
OpenGL es to achieve the effect of "big head, small head" and "head shaking"
Basis 33: XPath acquisition methods of page elements under various browsers
Database query optimization
JS pop up picture Lightbox light box plug-in spotlight.js
Keep your Eyes on the Lane: Real-time Attention-guided Lane Detection
Dirty data and memory leakage of ThreadLocal
Tips for improving code sustainability, take connectto method as an example.
Wechat reservation applet graduation design of applet completion works (1) development outline
这是我见过写得最烂的Controller层代码...
When testing VPN, the IP found by the command line is inconsistent with that of Baidu search
Idea starts the project slowly
Wechat reservation applet graduation design of applet completion works (2) applet function
NVIDIA programmable reasoning accelerator tensorrt learning notes (II) - practical operation