Alibabacloud.com offers a wide variety of articles about elasticsearch configuration example, easily find your elasticsearch configuration example information here online.
http://m.blog.csdn.net/article/details?id=50330149NodeThere are four types of Elasticsearch nodes:The Master and data--- default is this configuration, which stores data and can be the Master nodeOnly Master--- coordinates equalization between nodes, such as the movement of shardsonly data---stored, http.enable:false of such nodes can be set to falseThe no data and no master--- neither masternor store data
1. Cluster name, default is Elasticsearch:
Cluster.name:elasticsearch
2. Node name, the node name is created automatically when ES starts, but you can also configure:
Node.name: "Franz Kafka"
3. Whether as the primary node, each node can be configured as the primary node, and the default value is true:
Node.master:true
4. Whether the data is stored, that is, the index fragment is stored, the default value is true:
Node.data:true
The simultaneous
?
123456789
UpdateRequestupdateRequest=newUpdateRequest();updateRequest.index(indexName);updateRequest.type(type);updateRequest.id("1");updateRequest.doc(jsonBuilder().startObject().field("type","file").endObject());client.update(updateRequest).get();
The second type of code:?
123456789101112131415
IndexRequestindexRequest=newIndexRequest(indexName,type,"3").source(jsonBuilder().startObject().field("type","syslog").field("eventCount",2).field("eventDate"
The and symbol determines that multiple columns exist: {"Filter": {"and": [{"Exists": {"Field": "Sid"}},{"Exists": {"Field": "Level"}}]}} BOOL Combination {"Filter": {"and": [{"or": [{"Match_phrase": {"DisplayName": "S"}},{"Match_phrase": {"DisplayName": "L"}}]},{"Match_phrase": {"DisplayName": "A"}},{' Not ': {"Match_phrase": {"displayname": "P"}}}]}} Note: Similar and symbols replaced with bool must actually result in the same;Elasticsearch determin
Elasticsearch the configuration details and detailed description are as followshttp://rockelixir.iteye.com/blog/1883373here, the Elasticsearch make the following simple configurationcluster.name: es_clusternode.name:"es1"node.master:truenode.data:truenetwork.host:192.168.81.128# network.bind_host:192.168.81.128# network.publish_host:192.168.81.128Viewing the List
();Transportclient client = new prebuilttransportclient (settings);Other transport client settings include:Client.transport.ignore_cluster_name: Set to True to ignore the checksum of the cluster name when the node is connectedClient.transport.ping_timeout: Set the wait time for a node to get response, default 5 SecondsClient.transport.nodes_sampler_interval: How long does it take to get/ping list of nodes and connect, default 5 secondsThree. View cluster information list client.connected
###################################################################/ETC/ELASTICSEARCH/ELASTICSEARCH.YML## Base configuration for a write heavy cluster## Cluster/node BasicsCluster.name:logng# Node can has abritrary attributes we can use for routingNode.name:logsearch-01Node.datacenter:amsterdam# Force all memory to being locked, forcing the JVM to never swapBootstrap.mlockall:true# # Threadpool Settings # #
Nodes in a multi-machine cluster can be divided into master nodes and data nodes, using the Zen Discovery (Zen discovery) mechanism in the configuration file to manage different nodes. Zen Discovery is the default discovery mechanism that comes with ES, using multicast to discover other nodes. As soon as you start a new ES node and set the same name as the cluster, the node is added to the cluster.Select 192.168.0.224 this machine as the master node,
1. Boot automatically start Redis1), copy the Redis_init_script file under Redis directory utils to/ETC/INIT.D and rename it to REDISD, then run chmod u+x REDISD2), modify the redis.conf under the Redis root directory, change the daemonize to Yes, and change the pidfile to/var/run/redis_6379.pid3), copy the redis.conf under the Redis root directory to the/etc/redis/directory and rename it to 6379.conf4), in the console input Chkconfig REDISD on, configured for boot start, if the error is in the
An elasticsearch node has multiple thread pools, but the following four are important:Index: mainly refers to data indexing and data deletion operations (the default type is cached)Search: mainly for obtaining, statistics, and search operations (the default type is cached)BULK: mainly refers to batch operations on indexes (the default type is cached)Refresh: mainly for update operations (the default type is cached)
You can set a parameter to change th
CodeIgniter Configuration Session Usage example analysis, Session usage example
This example describes the session usage of CodeIgniter configuration. Share to everyone for your reference, as follows:
Just use CodeIgniter when the session was also confused, and then no long
Yii2 database read/write splitting configuration example, yii2 example
To start using a database, you must first configure the database connection component and add the db component to the application configuration. (the "Basic" Web application is config/web. PHP), DSN (Data Source Name) is the Name of the Data Source,
) Replace the Setcontentview () line with the Super.loadurl ("file:///android_asset/www/index.html");3) Change the OnCreate class from protected to public property;4) need to add import org.apache.cordova.DroidGap; Take my file as an example, as follows:
Right-click on the Androidmanifest.xml file under the project root and select Open with > Text Editor (open by), add the following Please refer to the Androidmanifest.xml file under the Phone
This example describes the session usage of the CodeIgniter configuration. Share to everyone for your reference, specific as follows:
Just use CodeIgniter was also one of the session confused, and then no longer have no use CI from the session, presumably still need to tidy up the session. To figure out the session in CI, let's say how the session in PHP works. Because the HTTP protocol itself is stateless
4.2 related configuration of access switches# # In this example, we are connecting to an access switch where the GI0/1 port is allied to the core switch. It also means that we need to configure GI0/1 as trunk port. The specific configuration is as follows:D-2960-3 (config) #int GI0/1D-2960-3 (config-if) #swD-2960-3 (config-if) #switchport moD-2960-3 (config-if) #
correct configuration file, so as to prevent the server from restarting after the reboot. Determine if the Nginx configuration is the correct command as follows:/usr/nginx/conf/nginx.conf /usr/nginx/sbin/nginx -tVirtual Host Configuration # domain-based virtual host server {listen 80; #监听端口 server_name a.com; #监听域名, multiple domain names separated by a space;
1. When importing Jar packages, add Spring-aop-4.2.2.release.jar on the XML configuration (required for Annotations)2. When writing a controller, the annotation need to do the relevant configuration is the red part, and XML is to implement the Controller interface(a) when the annotation is configuredPackage Com.spring.hello;import Javax.servlet.http.httpservletrequest;import Javax.servlet.http.httpservletre
Startservers 2
Minspareservers 6
Maxspareservers 12
MaxClients 80
Maxrequestsperchild 3000
This step we can also default, and so on the site to adjust the operation of the comparison is different, the old left now do not understand this parameter corresponding to the performance difference, I used to use MAPN environment when MySQL occupies too much, and then adjusted occupancy rate is much lower.
After the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.