= "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
other Slab
After knowing this, we can understand why memcached has lost cache data when the total memory is not fully occupied.
-P
Connection: Telnet 127.0.0.1 11211.
Stats \ r \ nHere we can see the number of times memcache is obtained, the current number of connections, the number of writes, the hit rate, and so on;
PID: process IDUptime: total running time, in secondsTime: Current TimeVersion: Version Number......Curr_items: Number of keyva
----> customize a response header. You can view the HTTP packet to know that the request is responded by the group of backend servers. Cookie webserver insert nocache option httpchk server S1 172.16.0.99 cookie S1 check port 80 weight 1 server B1 127.0.0.1: 8080 backup stats enable --------> stats hide-version stats uri/haproxy?
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
Memcached status analysis, memcached status
1. memcache status stats description:
Pid memcache server process ID uptime server has run seconds time server current unix timestamp version memcache version pointer_size pointer size of the current operating system (32-bit systems are generally 32bit) cumulative user time of the rusage_user process the cumulative system time of the rusage_system process the number of items currently stored on the curr_item
/spcreate. SQL -- "/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 th
1. Memcached Stats command: The Memcached Stats command is used to return statistics such as PID ( process number ), version number, number of connections, and so on. Grammar:StatsOutput Information Description:PID: memcache server process IDUptime: Number of seconds the server has been runningTime: Server current Unix timestampVersion:memcache versionsPointer_size: Operating system pointer sizeRusage_u
Disable the Flush_all command
-O
Specify comma-delimited options, typically used for extended or experimental properties
Stop memcached
You can query the process number of the memcached by using the following command from Linux:grep memcachedThen kill the memcached service process:pid>-9 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 h
Knowledge to be mastered:1. Functions2. File processing3, the use of tag4, the decoupling of the programDemand:1: Query2: Add3: Delete4: Modify5: ExitHaproxy.conf Configuration file Contents: 1 Global 2 log 127.0.0.1 local2 3 daemon 4 maxconn 5 log 127.0.0.1 local2 info 6 DEFA Ults 7 Log Global 8 mode HTTP 9 Timeout connect 5000ms10 Timeout client 50000ms11 Timeout server 50000ms12 option Dontlognull13 Listen stats:888815
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
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.