Browse Source

Adding minimal logging to determin runtime deployment issues (#4225)

* 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
Nathan Tippy 6 years ago
parent
commit
07a0d9e852

+ 2 - 2
frameworks/Java/greenlightning/greenlightning.dockerfile

@@ -5,7 +5,7 @@ COPY pom.xml pom.xml
 COPY src src
 RUN mvn clean install -q
 
-FROM openjdk:11-jdk-slim
+FROM nimmis/java-centos:openjdk-8-jre-headless
 WORKDIR /greenlightning
 COPY --from=maven /greenlightning/target/greenlightning-test.jar app.jar
-CMD ["java", "-server", "-Xmx14g", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-jar", "app.jar"]
+CMD ["java", "-server", "-Xmx13g", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-jar", "app.jar"]

+ 16 - 5
frameworks/Java/greenlightning/pom.xml

@@ -3,8 +3,8 @@
 	<modelVersion>4.0.0</modelVersion>
 
 	<groupId>com.ociweb.gl.benchmark</groupId>
-	<artifactId>greenlightning-test</artifactId>
-	<version>1.0.0</version>
+	<artifactId>benchmark-test</artifactId>
+	<version>1.0.16</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.15</version>
+			<version>1.0.16</version>
 		</dependency>
 		<dependency>
 			<groupId>org.slf4j</groupId>
@@ -39,17 +39,28 @@
 		    <artifactId>reactive-pg-client</artifactId>
 		    <version>0.10.6</version>
 		</dependency>
+
 	</dependencies>
 
 	<build>
+
 		<plugins>
+		    <plugin>
+			  <groupId>org.apache.maven.plugins</groupId>
+			  <artifactId>maven-surefire-plugin</artifactId>
+			  <version>2.4.1</version>
+			  <configuration>
+			    <argLine>-Xms1g</argLine>
+			    <argLine>-Xmx1g</argLine>
+			  </configuration>
+			</plugin>
 			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-compiler-plugin</artifactId>
-				<version>3.8.0</version>
+				<version>3.0</version>
 				<configuration>
 					<compilerArguments>
-						<profile>compact1</profile>
+						<profile>compact2</profile>
 					</compilerArguments>
 					<source>1.8</source>
 					<target>1.8</target>

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

@@ -3,6 +3,7 @@ package com.ociweb.gl.benchmark;
 import java.util.concurrent.atomic.AtomicBoolean;
 
 import com.ociweb.gl.api.GreenApp;
+import com.ociweb.gl.api.GreenCommandChannel;
 /**
  * ************************************************************************
  * For greenlightning support, training or feature reqeusts please contact:
@@ -188,8 +189,11 @@ public class FrameworkTest implements GreenApp {
 		
 		if (telemetryPort>0) {
 			framework.enableTelemetry(host,telemetryPort);
+		} else {
+			framework.enableTelemetryLogging();
 		}
-		
+				
+		framework.setTimerPulseRate(30 * 1000);//2x per minute
 		
 		ServerSocketWriterStage.lowLatency = false; //turn on high volume mode, less concerned about low latency. 
 	
@@ -217,7 +221,14 @@ public class FrameworkTest implements GreenApp {
 	}
 	 
     @Override
-    public void declareBehavior(GreenRuntime runtime) { 
+    public void declareBehavior(GreenRuntime runtime) {
+    	
+    	//log the telemetry snapshot upon every pulse
+    	final GreenCommandChannel cmd = runtime.newCommandChannel();    	
+    	runtime.addTimePulseListener("log",(t,i)->{
+    		cmd.logTelemetrySnapshot();
+    	});
+    	
     }
   
 }