Browse Source

GL, update to next version (#4459)

* Adding GreenLightning

* fix missing quote

create object for json production

* turn off telemetry for default test

* allow any external domain or ip

* Update to next version and template construction

* Revert "Update to next version and template construction"

This reverts commit da4fbc3b085f6e3b3bb50283d4d6e79efffdd3bb.

* Revert "Revert "Update to next version and template construction""

This reverts commit eb05517a192554caec7c5f690eeaaab171a549b6.

* Revert "Update to next version and template construction"

This reverts commit da4fbc3b085f6e3b3bb50283d4d6e79efffdd3bb.

* fix host ip to 0.0.0.0 to take load

added database read tests

* response large enough for multi db

remove epoll, it was not helping

added required headers

* update list of which tests we have implmented

* removed unused dependency

* remove unrequired 16G memory grab to get past travis check.

* Update to next GL version to fix overload issue past 1.5M rps

Refine template method to remove dead argument

* simplify arg parse

fixed issue with multi db under heavy load

* updat to atomic int

* Removed support for MultiTest, not stable at this time.

* added clean for safety

* remove dead code

* remove old comments

* [ci fw-only Java/greenlightning]

added comment

* [ci fw-only Java/greenlightning]

Added tests for remaining multi, update and fortunes

* [ci fw-only Java/greenlightning]

disable update test, seems to be missing some writes.

* [ci fw-only Java/greenlightning]

re-test of DBUpdate

* [ci fw-only Java/greenlightning]

disabled multi and update while tracking issue

* fixed muti paylod response JSON dups.

* [ci fw-only Java/greenlightning]

narrow building

* [ci skip] update readme

* [ci fw-only Java/greenlightning]

Update to version supporting 0.0.0.0 wildcard host

* [ci fw-only Java/greenlightning]

explicit memory min/max setting instead of default

update to new maven for build

* lower required low end to 8G

* [ci fw-only Java/greenlightning]

dropped min to 6G

* [ci fw-only Java/greenlightning]

memory reduction, was using as much as 20G, paging may have slowed test

reduce pipe memory allocations

combined behaviors to reduce memory

reduce db inflight collection to reduce memory

* Revert "[ci fw-only Java/greenlightning]"

This reverts commit 47c351db1ddeb64e65801f15e3c4398d5eca84ad.

* [ci fw-only Java/greenlightning]

Was using 16-20G which may cause paging and slow results

Reduced Pipe lenghts

Reduced concurrent connections

Combined behaviors to reduce Pipe counts for more memory.

Lowered limit to 16G to know it is enforced.

* removed minimum required memory in docker file

* [ci fw-only Java/greenlightning]  Ready for merge

* [ci fw-only Java/greenlightning]

Lowering memory usage to 7G from 14G

Clean up design to be easier to read

* [ci fw-only Java/greenlightning]

Investigating pef issue, returned threads to normal priority

Reduce the new and ongoing network kernel calls

Tread Executor using hardcoded count instead of asking docker

* [ci fw-only Java/greenlightning]

remove dead code

* [ci fw-only Java/greenlightning]

Test CentOS runtime in container

Add minimal logging to track runtime issues

* Revert "[ci fw-only Java/greenlightning]"

This reverts commit 7119eaa0df0f10ac5d5d6aca4bd15e04bc89de32.

* [ci fw-only Java/greenlightning]

added centOS in container as test

added minimal logging to debug deployment

* [ci fw-only Java/greenlightning]

1G less, narrow test scope

* [ci fw-only Java/greenlightning]

streamline trie parser for headers etc

load balance based on primes to ensure even distribution

clean up ServerSocketWriter for larger blocks

Doubled ServerSocketWriters for greater volume.

* [ci fw-only Java/greenlightning]

Upgrade to Java 11 build and run pipeline

Update socket reader to optimize for greater volume

Upate pipe lengths to support greater volume

* [ci fw-only Java/greenlightning]

Double allowed limit on database connections

Bumped up to new version of GreenLightning

Doubled clock rate for reading new requests off socket

* missing version number restored

* [ci fw-only Java/greenlightning]

bump up in flight db count

* [ci fw-only Java/greenlightning]

Update to next version for larger read socket blocks

* [ci fw-only Java/greenlightning]

Bump up reactive pg client version to 11.1

Simplify build process

* [ci fw-only Java/greenlightning]

Bump up to next version

* [ci fw-only Java/greenlightning]

comments

* [ci fw-only Java/greenlightning]

update to new version of GL

update memory usage for volume

* [ci fw-only Java/greenlightning]

reduce DB calls in flight

* [ci fw-only Java/greenlightning]

bump up memory limit by 30%

* [ci fw-only Java/greenlightning]

outgoing buffers do not need to be that large reduced by 75%

* [ci fw-only Java/greenlightning]

Minimize open connections to save memory

* [ci fw-only Java/greenlightning]

next version of GL

bump up connections

* [ci fw-only Java/greenlightning]

update version

reduce memory per connection

reduce deep sleep

* Revert "[ci fw-only Java/greenlightning]"

This reverts commit f6f398f84f787b83c71d69d1087498d30b7e1bec.

* [ci fw-only Java/greenlightning]

next version

* [ci fw-only Java/greenlightning]

change memory usage to favor more connections

* update docker file for more memory

* update version

* [ci fw-only Java/greenlightning]

update memory limit

* Revert "[ci fw-only Java/greenlightning]"

This reverts commit 3a840590bd391a488244610dcbe9d61b1972577b.

* [ci fw-only Java/greenlightning]

limit selectors and increase tracks

* [ci fw-only Java/greenlightning]

update to new version

* [ci fw-only Java/greenlightning]

update version

* [ci fw-only Java/greenlightning]

update port
Nathan Tippy 6 years ago
parent
commit
a853f1a19d

+ 2 - 2
frameworks/Java/greenlightning/pom.xml

@@ -4,7 +4,7 @@
 
 	<groupId>com.ociweb.gl.benchmark</groupId>
 	<artifactId>benchmark-test</artifactId>
-	<version>1.0.29</version>
+	<version>1.0.30</version>
 
 	<properties>
 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -14,7 +14,7 @@
 		<dependency>
 			<groupId>com.ociweb</groupId>
 			<artifactId>greenlightning</artifactId>
-			<version>1.0.29</version> <!-- must be a fixed version for techempower releases -->
+			<version>1.0.30</version> <!-- must be a fixed version for techempower releases -->
 		</dependency>
 		<dependency>
 			<groupId>org.slf4j</groupId>

+ 10 - 10
frameworks/Java/greenlightning/src/main/java/com/ociweb/gl/benchmark/FrameworkTest.java

@@ -52,9 +52,10 @@ public class FrameworkTest implements GreenApp {
 	public static String connectionDB =       "testdb";
 	public static String connectionUser =     "postgres";
 	public static String connectionPassword = "postgres";
-		
-	static final int c = 63;//125;//250 goal,       //needed to reach 16K simultainious calls
-
+	
+	//TODO: why is this multiplied by 2, remove this odd behavior and adjust the numbers...
+	static final int c = 274;// to reach 16K simultainious calls
+    //NOTE: plaintext is run with 16K connections but JSON test is only 512 (optimize for 512)
 	
     public FrameworkTest() {
     	    	
@@ -64,17 +65,16 @@ public class FrameworkTest implements GreenApp {
     	
     	//this server works best with  -XX:+UseNUMA    	
     	this(System.getProperty("host","0.0.0.0"), 
-    		 8080,    	//default port for test
+    		 8080,    	//default port for test 
     		 c,//250 goal,       //needed to reach 16K simultainious calls
-    		 (c*2)*4,// c*2,     //1<<14 (router to module) //TODO: do we have a minimum in place here?
+    		 c*4,// c*2,     //1<<14 (router to module) 
     		 1<<11,     //default total size of network buffer used by blocks
     		 Integer.parseInt(System.getProperty("telemetry.port", "-1")),
     		 "tfb-database", // jdbc:postgresql://tfb-database:5432/hello_world
     		 "hello_world",
     		 "benchmarkdbuser",
     		 "benchmarkdbpass"
-    		 );    	
-    	
+    		 );
     }   
         
     public FrameworkTest(String host, int port, 
@@ -164,9 +164,9 @@ public class FrameworkTest implements GreenApp {
     			 .setMaxConnectionBits(maxConnectionBits) //8K max client connections.
     			 .setConcurrentChannelsPerDecryptUnit(concurrentWritesPerChannel)
     			 
-    			 //keep the outgoing pipe count small...
-    			 .setConcurrentChannelsPerEncryptUnit(Math.max(4, concurrentWritesPerChannel/10))
-    			 
+    			 //keep the outgoing pipe count smaller for less scan time...
+    			 .setConcurrentChannelsPerEncryptUnit(Math.max(4, concurrentWritesPerChannel/2))
+    					 
     			 .setMaxQueueIn(queueLengthOfPendingRequests)
     			 .setMaxRequestSize(maxRequestSize)