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 specific items immediately
factor, default is 1.25-N Minimum allocation space, key+value+flags default is 48-H Display Help
Basic commands for memcached (when memcached is started for commands that relate to the data that Memcached manages and its own running state):
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 existi
instance. They are stats and Flush_all commands.
StatsThe stats command functions as its name: the current statistics for the memcached instance to which it is connected. In the following example, the Execute Stats command displays information about the current memcached instance:
Stats
STAT pid
STAT
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 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 speci
*/
Public static void main (String [] args ){
// TODO Auto-generated method stub
TwoGen
TgObj =
New TwoGen
(88, "Generics ");
// Show the types.
TgObj. showTypes ();
// Obtain and show values.
Int
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 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
I
/plainContent-Length: 12Connection: keep-aliveDate: Sun, 15 Dec 2013 15:00:15 GMTServer: gophr
$ Curl-sI http://go.fcgi.unix/| wc-c141
Start the engine
Use sysctl to configure the kernel
Configure Nginx
Configure Nginx vhosts
Start the service with www-data
Run the Benchmark Test
Benchmark Test GOMAXPROCS = 1Go standalone
# Wrk-t100-c5000-d30s http: // 127.0.0.1: 8080/Running 30 s test @ http: // 127.0.0.1: 8080/100 threads and 5000 connectionsThread S
/db_1/rdbms/admin/" is the script directoryAfter running the script, enter perfstat_password, default_tablespace, temporary_tablespace
10. test whether a database snapshot is generated successfully.SQL> execute statspack. Snap
11. Generate a snapshotSQL> execute statspack. Snap
12. 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 report. For example, a sna
In JS, code nesting and code callback are very common. They are not only difficult to write but are not harmful. It is a headache for me to wait for the codoon
function () { function () { function () { function () { //pass } } }}
This is a conventional nesting. If each function has a lot of logic processing, it will lead to a very long code, which is not only difficult to code, but also very painful to read, this is a good situation in JS,
tcp # http Layer 7 mode option httpchk # Heartbeat detection File server db1 10.1.6.203: 3306 weight 1 check port 9222 inter 12000 rise 3 fall 3 # server definition, check inter 12000 is the heartbeat detection frequency rise 3 is 3 times correctly think the server is available, fall 3 is 3 times failed think the server is unavailable, weight stands for weight server db2 10.1.6.205: 3306 weweigh T 1 check port 9222 inter 12000 rise 3 fall 3 listen haproxy_stats mode http bind 10.1.6.173: 8888 o
;haproxygrouphaproxy daemon#turnonstatsunixsocket statssocket/var/lib/haproxy/stats#---------------------------------------- -----------------------------#mainfrontendwhichproxystothebackends#- --------------------------------------------------------------------frontendmain*:80 #第一种方式 #bind*:80 #第二种方式 # bind*:8080 #只能用于frontend, listen;#maxconn can also be defined here or after listen, Defines the maximum number of concurrent connections for a single
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:
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.