I like it very much;
5. HAProxy supports virtual hosts.
The following describes how to use Haproxy as the Server Load balancer:Current Environment:
Ubuntu16.04 + Haproxy 192.168.93.21Centos6 + httpd 192.168.93.5Centos6 + httpd 192.168.93.7
Haproxy configuration file
Vi/etc/haproxy. using Global log/dev/log local0 log/dev/log local1 notice chroot/var/lib/haproxy stats socket/run/haproxy/admin. sock mode 660 level admin
Database home directory, default is '/data1/memcacheq '
-L
Log buffer size, default is 32KB
-C
How many seconds checkpoint once, 0 for disable, and default is 5 minutes
-T
How many seconds Memp_trickle once, 0 for disable, and default is seconds
-S
How many seconds queue stats dump once, 0 for disable, and defaul
([mydir ,'*. jpg ']); % extension n = length (DIRS); for I = 1: n if ~ DIRS (I ). isdir img = imread (strcat (mydir, DIRS (I ). name); img = im2bw (img); % binarization img = 1-img; % color Anti-transfer characters become Unicom domains, easy to remove noise for ii = region = [ii * 20 +,]; % divide a verification code into four 20*20 character pictures subimg = imcdrop (img, region); imlabel = bwlabel (subimg); % imshow (imlabel); if max (imlabel)> 1% indicates that there is noise, % max (imlab
/admin/spauto. SQL
14. Delete historical data
Select max (snap_id) from stats $ snapshot; -- deletes the corresponding data in the stats $ snapshot table. The corresponding data in other tables is also deleted.
Delete from stats $ snapshot where snap_id You can also run the sptrunc. SQL script to directly Delete the information of these statistical tables.
Note:
means to force the kill process.After the memcached is started, the data in the cache can be manipulated by the client, and we describe some common clients and how to use them.Telnet ClientThe Telnet client can use the command line to monitor how the memcached server stores data. For example, Memcached has a service address of 192.168.4.86:11211 and can telnet to the service port:Telnet 192.168.4.86 11211If the connection succeeds, you can use some of the following commands:
, Memcached is an LRU cache, and it cleans up extended data as long as it is pre-booked, but in fact, memcached does not delete any cached data but is no longer visible to the customer after it expires; Memcached also does not really clean up the cache by age, but only when the get command arrives, checking its duration;Memcached provides a handful of commands to accomplish server-side interactions, which are based on memcached protocol implementations.Storage class Commands: Set, add, replace,
Overwrite existing Key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend data to existing key
Prepend Key 0 60 15
incr
Increments numerical key value by given number
INCR MyKey 2
Decr
Decrements numerical key value by given number
DECR MyKey 5
Delete
Deletes an existing key
Delete MyKey
Flush_all
Invalidate sp
specific items immediately
Flush_all
Invalidate all items in n seconds
Flush_all 900
Stats
Prints General Statistics
Stats
Prints Memory Statistics
Stats Slabs
Prints Memory Statistics
Stats malloc
Print Higher level al
port 9222 Inter 12000 Rise 3 Fall 3 #服务器定义, check Inter 12000 is detecting heartbeat frequency rise 3 is 3 times correctly think the server is available , Fall 3 is 3 failures that the server is not available, weight represents the weight server DB2 10.1.6.205:3306 weight 1 Check port 9222 Inter 12000 rise 3 Fall 3 list En haproxy_stats MoDE http bind 10.1.6.173:8888 option httplog stats Refresh 5s stats u
Key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend data to existing key
Prepend Key 0 60 15
incr
Increments numerical key value by given number
INCR MyKey 2
Decr
Decrements numerical key value by given number
DECR MyKey 5
Delete
Deletes an existing key
Dele
-- "/oracle/product/10.2.0/db_1/rdbms/admin/" is the script directoryAfter running the script, enter perfstat_password, default_tablespace, temporary_tablespace10. test whether a database snapshot is generated successfully.SQL> execute statspack. snap11. Generate a snapshotSQL> execute statspack. snap12. Take the Statspack report for the time period between two snapshotsSQL> @/oracle/product/10.2.0/db_1/rdbms/admin/spreport. SQLEnter the start point and end point for generating the Statspack re
+value+flags default is 48-H Display HelpOperation Memcached
Command
Description
Example
Get
Reads a value
Get MyKey
Set
Set a key unconditionally
Set MyKey 0 60 5
Add
ADD a new key
Add Newkey 0 60 5
Replace
Overwrite existing Key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend data to existing
Invalidate specific items immediately
Flush_all
Invalidate all items in n seconds
Flush_all 900
Stats
Prints general statistics
Stats
Prints memory statistics
Stats slabs
Prints memory statistics
Stats malloc
Print higher level all
ACCEPTIptables-a input-p udp-s 192.168.1.111-dpost 11211-j ACCEPT Install. then start memcached-d start
Command
Description
Example
Get
Reads a value
Get mykey
Set
Set a key unconditionally
Set mykey 0 60 5
Add
Add a new key
Add newkey 0 60 5
Replace
Overwrite existing key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend
provides data preprocessing and visualization functions for the classification, such as checking the redundancy and standardization of variables. The dist () in the base package and the Daisy () function in the cluster package provide a distance calculation function, and the proxy package provides more distance measures, including the distance between matrices. The Simba package handles both the existing and missing data, including the similarity matrix and the reshape.2) hypothesis test (hypot
= "access_combined_wcookie"
1. log requests whose source type is access_combined_wcookie and whose IP address is 10.2.1.44
-- 81
Sourcetype = "access_combined_wcookie" 10.2.1.44
2. Search for 63 requests for "purchase"
Sourcetype = "access_combined_wcookie" 10.2.1.44 purchase
3. Further search for purchase requests whose HTTP return code is not 200
Sourcetype = "access_combined_wcookie" 10.2.1.44 purchase not 200
4. Further search for requests that are not 404 error
Sourcetype = "access_combine
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.