@Param({"0", "1", "10", "100", "1000"})
int numIncludedAudiences;
@Param({"0", "1", "10", "100", "1000"})
int numExcludedAudiences;
@Param({"1", "5", "10"})
int segmentsPerAudience;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dumps memcached data from one server and restores on another. | |
# Useful for copying production data to staging. | |
# | |
# Generates a ./user_ids file with the users that were copied and an ./error file for errors. | |
# The user_ids file can be plugged into the JMeter RTS load generator. | |
# | |
# Takes a maximum number of entries to copy. If unspecified it copies everything. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. akka-http | |
akka-http 1.0 coming in Q1 2015, it's essentially spray 2.0 (uses a lot of the spray code base) | |
Uses the same spray scala APIs | |
Based on akka-io, akka-stream, akka-http-core (tcp -> http translation) | |
Reactive stream processing over http, backpressure | |
Some features are missing, like websockets | |
One long term goal is to use akka-http in Play instead of Netty | |
Netty is more proven; akka likely needs some performance tweaks. | |
2. Tapad microservices |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Integration | |
___________ | |
On each host: | |
cd /usr/local/lib | |
wget http://artifactory.devaws.dataxu.net/artifactory/dataxu-binaries/apache-tomcat-8.0.18.tar.gz | |
tar -xzf apache-tomcat-8.0.18.tar.gz | |
chmod a+x apache-tomcat-8.0.18/bin/*.sh | |
rm -f apache-tomcat-8.0.18.tar.gz | |
cd ../bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: this assumes you have done this first: https://gist.github.com/rtitle/282dd241c3abbb5205f6 | |
Integration | |
___________ | |
On each host: | |
cd /usr/local/lib | |
wget http://artifactory.devaws.dataxu.net/artifactory/dataxu-binaries/apache-tomcat-7.0.59.tar.gz | |
tar -xzf apache-tomcat-7.0.59.tar.gz | |
rm -f apache-tomcat-7.0.59.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# Directory to store DFA reports | |
emissary.dfa.report.directory=/opt/emissary-shared/dfa_reports | |
## | |
# Whether to create new reports | |
emissary.dfa.report.createReports=true | |
## | |
# Name of the DFA report to create/search for. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
send() { | |
REGION=$1 | |
ELB=$2 | |
SOA=$( dig SOA $ELB | grep -A1 "AUTHORITY SECTION" | tail -1| awk '{ print $5 }' ) | |
VALUE=$( for a in $( seq 20 ); do dig $ELB @$SOA| grep "^$ELB" | grep -o '[0-9\.]*$' ; done | sort -u | wc -l) | |
DATE=`date +%s` | |
echo "aws.elb.region.$REGION.ELBHostCount.Sum $VALUE ${DATE}" | nc localhost 2003 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void testAntlrPerformance() throws Exception { | |
initData2(); | |
int numSegments = 100; | |
List<Audience> audiences = new ArrayList<>(numSegments); | |
List<Segment> segments = new ArrayList<>(numSegments); | |
Map<Tuple<String, String>, SegmentAudienceRate> segmentAudienceRateMap = new HashMap<>(numSegments); | |
ConcurrentMap<String, Segment> segmentMap = new ConcurrentHashMap<>(numSegments); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for dataxu.DXRTS:rts-ad:jar:3.57.0-SNAPSHOT | |
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.groupId' for org.apache.flume:flume-ng-sdk:jar with value '*' does not match a valid id pattern. @ dataxu:DXRTS:3.57.0-SNAPSHOT, /home/rtitle/git/rtitle/realtime-system/pom.xml, line 885, column 22 | |
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.artifactId' for org.apache.flume:flume-ng-sdk:jar with value '*' does not match a valid id pattern. @ dataxu:DXRTS:3.57.0-SNAPSHOT, /home/rtitle/git/rtitle/realtime-system/pom.xml, line 886, column 25 | |
[WARNING] 'dependencyManagement.dependencies.dependency.exclusions.exclusion.groupId' for org.apache.flume:flume-ng-embedded-agent:jar with value '*' does not match a valid id pattern. @ dataxu:DXRTS:3.57.0-SNAPSHOT, /home/rtitle/git/rtitle/realtime-system/pom.xml, line 896, column 22 | |
[WARNING] 'dependencyM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from master build https://jenkins.devaws.dataxu.net/job/realtime-system_build/10054/ | |
# Build #10054 dataxu/master (ad10084d) (Oct 18, 2016 10:30:29 AM) | |
seconds test | |
1857 dataxu.rt.services.caching.memcached.DxNodeLocatorTest | |
1215 dataxu.rt.services.context.aerospike.AerospikeContextServiceTest | |
358 dataxu.rt.services.budget.BudgetBankTest | |
317 dataxu.rt.adfilter.lucene.FlightCreativePickerLuceneTest | |
292 dataxu.rt.api.v2.user.trace.UserTraceServiceTest | |
267 dataxu.rt.services.users.profiles.AerospikeUserProfileServiceTest |
OlderNewer