Second, disconnect from the VPN. Edit /etc/NetworkManager/NetworkManager.conf
$ sudo gedit /etc/NetworkManager/NetworkManager.conf
and comment out
dns=dnsmasq
| Use tcpdump to monitor mysql | |
| # Capture the packets | |
| sudo tcpdump -i eth0 port 3306 -s 65535 -x -n -q -tttt > tcpdump.out | |
| # analyze all the requests from a given host | |
| pt-query-digest --type=tcpdump --filter '($event->{host} || $event->{ip} || "") =~ m/192.168.248.64/' tcpdump.out |
| env/ | |
| *.swp |
| #!/usr/bin/env php | |
| <?php | |
| # var_dump($argv); | |
| # run it by providing "200298-1545" pair of city_id and page_id | |
| list($cityId, $pageId) = explode('-', $argv[1]); | |
| putenv('SERVER_ID=' . $cityId); |
| env/ | |
| *.swp |
Second, disconnect from the VPN. Edit /etc/NetworkManager/NetworkManager.conf
$ sudo gedit /etc/NetworkManager/NetworkManager.conf
and comment out
dns=dnsmasq
| #!/bin/bash | |
| NS_ID=$1 | |
| NS_NAME=$2 | |
| DB_PARAMS=`dbparams.pl --name=diepioconception --type=slave` | |
| mysql $DB_PARAMS --silent --skip-column-names -e "set charset 'latin1'; SELECT CONCAT('$NS_NAME', ':', page_title) FROM page where page_namespace = ${NS_ID}" |
| # HTTP requests sent by MediaWiki grouped by caller (16336352 requests analyzed) | |
| mediawiki-app Helios Helios 0.0840 201.26 qps, resp. times: p50 = 1.00 ms / p95 = 3.00 ms / p99 = 7.00 ms | |
| mediawiki-app ChatServerApiClient:makeRequest ChatServerApiClient:makeRequest 0.0002 0.55 qps, resp. times: p50 = 1.00 ms / p95 = 5.00 ms / p99 = 14.29 ms | |
| mediawiki-app template-classification-storage template-classification-storage 0.0274 65.56 qps, resp. times: p50 = 1.00 ms / p95 = 3.00 ms / p99 = 7.00 ms | |
| mediawiki-app site-attribute site-attribute 0.0008 2.00 qps, resp. times: p50 = 2.00 ms / p95 = 4.00 ms / p99 = 9.00 ms | |
| mediawiki-app File:getDescriptionText File:getDescriptionText 0.0002 0.41 qps, resp. times: p50 = 94.00 ms / p95 = 295.13 ms / p99 = 533.82 ms | |
| mediawiki-app PhalanxService:sendToPhalanxDaemon PhalanxService:sendToPhalanxDaemon 0.3101 742.87 qps, resp. times: p50 = 0.00 ms / p95 = 2.00 ms / p99 = 6.00 ms | |
| mediawiki-app ESFandomSearchService:select ESFandomSearchService:select 0.0015 3.55 qps, resp. times: |
| $ for FILE in `find -name *.js | grep jquery | sed 's/\.\///g' | grep '^resources'`; do echo "Checking ${FILE}..."; ack-grep --php "$FILE"; done; | |
| Checking resources/wikia/polyfills/jquery.wikia.placeholder.js... | |
| extensions/wikia/AssetsManager/config.php | |
| 415: '//resources/wikia/polyfills/jquery.wikia.placeholder.js', | |
| Checking resources/wikia/libraries/mustache/jquery.mustache.js... | |
| resources/wikia/Resources.php | |
| 243: 'scripts' => 'resources/wikia/libraries/mustache/jquery.mustache.js', | |
| Checking resources/wikia/libraries/jquery/ellipses.js... | |
| extensions/wikia/AssetsManager/config.php | |
| 359: '//resources/wikia/libraries/jquery/ellipses.js', |
| env/ | |
| *.swp |
| #!/bin/bash | |
| WIKICITIES_PARAMS=`dbparams.pl --name wikicities` | |
| for VAR_NAME in `mysql $WIKICITIES_PARAMS --batch --disable-column-names -e 'select cv_name from city_variables_pool'` | |
| do | |
| # echo "Checking ${VAR_NAME}.." | |
| # check the usage in the config | |
| # WIKIA_CONFIG_ROOT=/usr/wikia/slot1/current/config | |
| COUNT=`ack-grep --no-filename -i --php "$VAR_NAME" $WIKIA_CONFIG_ROOT -c` |