/logging.yml/etc/elasticsearch/scripts/etc/init.d/ Elasticsearch/etc/sysconfig/elasticsearch/usr/lib/sysctl.d/usr/lib/sysctl.d/elasticsearch.conf/usr/lib/systemd /system/elasticsearch.service #启动脚本/usr/lib/tmpfiles.d/usr/lib/tmpfiles.d/elasticsearch.conf3, modify the configuration file, here are some of the path to see personal habits[Email protected] ~]# vim/etc/elasticsearch/elasticsearch.yml cluster.name: "Linux-es" Node.name:es1.bjwf.com33Path.data:/elk/data37 path.logs:/elk/logs43 bootstrap
important is the followingParameters:#es的home路径, you don't have to use the default value toSet.default.es_home=#分配给es的最小内存set.default.es_min_mem=256#分配给es的最大内存set.default.es_max_mem=1024# Startup Wait Time-out (in seconds)wrapper.startup.timeout=300# time to close wait timeout (in seconds)wrapper.shutdown.timeout=300# ping time-out (in seconds)wrapper.ping.timeout=300Installing pluginsTake head plugin as an example:When connected, run%es_home%\bin\plugin-install Mobz/elasticsearch-head directly
because the company's Elasticsearch cluster only uses two servers. As long as one server data loss Elasticsearch will lose half the data. Therefore, the backup and recovery of data is very important. Elasticsearch snapshot and recovery modules can create a single index or a snapshot of the entire cluster to a remote repository for data backup and recovery. The following is a backup recovery. Kibana Index as an exampleData backup and Recovery1. Modify the Elasticsearch configuration fileVim Elast
Elasticsearch provides a very comprehensive and powerful rest API that you can use to interact with your cluster. The few things you can do with the API are as follows:
Check your cluster, node, and index health status and statistics
Managing cluster, node, and index data and metadata
Perform crud (Create, read, update, and delete) indexes and search operations
Perform advanced search operations such as paging, sorting, filtering, scripting, aggregation, and many others
Preface:
1. The deployed Elk Architecture is elasticsearch (hereinafter referred to as ES) +logstash+kibana+filebeat
The 2.Filebeat deployment is responsible for collecting logs on the nodes that need to collect the logs. The Logstash and ES are then filtered for analysis, and then transferred and focused on the Kibana system for visual display.
3. Non-cluster deployment None-cluster
4. The elasticsearch,kibana are made up of 5.5.2→6.0.0, while Logstash is 5.5.2→6.0.1;filebeat 5.5.2→5.6.5→6.0.1
it can be implemented on its own and control the cache when necessary, but sometimes we need more control. For example, there are not many opportunities for query reuse, and we want to periodically clear the cache for these queries. If you do not specify _cache_key, you can only clear the entire filter cache (filter caches), instead, you only need to execute the following command to clear the specific cache:‘localhost:9200/users/_cache/clear?filter_k
I. Updating DocumentsThis example shows how to update we previous document (ID of 1) by changing the name field to "Jane Doe":Curl-xpost ' 192.168.56.101:9200/customer/external/1/_update?pretty '-d '{"Doc": {"name": "Jane Doe"}}‘This example shows how to update we previous document (ID of 1) by changing the Name field to ' Jane Doe ' and at the same Time add an age field to it:Curl-xpost ' 192.168.56.101:9200
First, Cluster API detailed1, cluster health (get the status of the cluster)Cluster Status:Green: It means that all the fragments are assignedYellow: Yellow indicates that the primary fragment is assigned, but the copy is notRed: Indicates that a specific fragment is not allocated in the clusterRequest parametersLevel:cluster,indices,shardsWait_for_status:green,yellow,red[Email protected] ~]# Curl-xget ' http://10.2.11.225:9200/_cluster/health/tomcat-
The official PHP API is written in the ribs, and the following class can be manipulated using the ES API.
[PHP]View Plaincopyprint?
Class ElasticSearch {
public $index;
function __construct ($server = ' http://localhost:9200 ') {
$this->server = $server;
}
function Call ($path, $http = Array ()) {
if (! $this->index) throw new Exception (' $this->index needs a value ');
return Json_decode (file_get_contents (
IntroducedLoad balancing is a common technique for optimizing resource utilization across multiple application instances, maximizing throughput, reducing latency, and ensuring fault tolerance.Nginx supports the following three types of algorithms:Round-robin: Request loop release to each machineLeast connected: The next request will be sent to the server with the least number of active connectionsSession Persistence: The hash function is used to determine what server should be selected for the n
Check Port 9200 Inter 12000 RI SE 3 Fall 3 server MYSQL-PXC02 192.168.163.7:3306 Check Port 9200 Inter 12000 rise 3 Fall 3 backend stats-back mode HTTP b
Alance roundrobin stats uri/haproxy/stats stats auth Pxcstats:secret backend pxc-onenode-back mode TCP balance Leastconn Option Httpchk Server mysql-pxc01 192.168.163.6:3306 Check Port 9200 Inter 12000 Rise 3 F
Tags: percona xtradb cluster Sysbench haproxyXtradb after the cluster deployment is complete, 3 machine can read and write at the same time, it needs to be built in front Haproxy For load Balancing. official website haproxy Configuration reference address:Https://www.percona.com/doc/percona-xtradb-cluster/5.6/howtos/virt_sandbox.htmlHaproxy Server Configurationtake a machine as a haproxy, here is 192.168.6.219. Installing HaproxyYum Install Haproxy-yConfiguration file:[Email protected] ~]# cat/e
OverviewThe purpose of this tutorial is to show you how to block discrete graphics cards for dual graphics notebooks by modifying DSDT and SSDT. (Example: Intel integrated graphics + nvidia discrete graphics [Optimus Technology], and Intel integrated graphics +radeon discrete graphics).Because under the black Apple, the dual graphics notebook can only drive Intel's integrated graphics, and if it does not do any processing, although it will not work, b
underlying DirectRenderInterface (DRI) and graphics card driver.
Run the following command:
Lsmod
See
DRM: Radeon
It indicates that the video card driver is normal, and DRI is faulty.
View
/Var/log/Xorg.0.log
The following information is found:
....
(=) RADEON (0): Using 24 bit depth buffer
(EE) RADEON (0): Static buffer allocation failed. Disabling DRI.
(E
cannot install the public drive
Some third-party ATI graphics cards cannot install the public version of the driver, which is caused by many reasons. For example, some third-party manufacturers have made changes to the hardware, non-public PCB design and BIOs are adopted, which may lead to the failure to install the public edition driver. What should I do when your video card encounters this problem?
First, extract the downloaded atigraphics card driver to any directory on the hard disk. In the
tell xinetd which script to run, and when a connection comes in, XINETD executes the script and returns the contents of the script output directly.
HAProxy -> xinetd -> mysql-checkScript, Haproxy Gets the status information of MySQL
Configuration Case for xinetd
Let's implement a simple xinetd example, open port 9200, and return the output of a test script
If there is no xinetd on the machine, install it first, CENTOS7 can use the commandyum inst
Desktop Graphics Ladder Chart August 2016 The latest edition, quickly collection.
Graphics Ladder Figure August 2016 latest Desktop edition
Currently desktop independent graphics mainly Nvidia and AMD two camps, the following we first look at the graphics card ladder Figure August 2016 the latest compact version, mainly selected Nvidia and AMD the latest three generations of mainstream models for comparison, the following table shows.
Desktop Graphics Ladder Figure Au
. this, unfortunately, is not common knowledge.
In the open source world, our drivers are much more svelte, partly because less features are supported, and also because application-specific optimizations are omitted. unlike the proprietary drivers, however, the boundaries of separation are clearly visible. in respect to "driver" code that is specific to a special hardware, there are, more or less, three separate components involved:
X Display Driver
Mesa dri driver
Kernel DRM driver
Indeed,
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.