summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/note/links/links.txt14
-rw-r--r--doc/note/openshift/dbg-mem-issues.txt31
-rw-r--r--doc/note/redis/redis.txt32
3 files changed, 76 insertions, 1 deletions
diff --git a/doc/note/links/links.txt b/doc/note/links/links.txt
index 2d918c2..f90be46 100644
--- a/doc/note/links/links.txt
+++ b/doc/note/links/links.txt
@@ -135,6 +135,9 @@ Links (Aka argument amplifiers)
- [case slf4j](http://www.slf4j.org/api/org/slf4j/Logger.html)
- [General rules](https://gualtierotesta.github.io/java/tutorial-correct-slf4j-logging-usage-and-how-to-check-it/)
- [logging guards](https://stackoverflow.com/a/12953090/4415884)
+- [impl VS facade in lib](https://jira.post.ch/browse/SDCISA-15223)
+- [drop logger impl from lib](https://github.com/swisspost/vertx-redisques/pull/153)
+- [Should my library attempt to configure logging?](https://www.slf4j.org/faq.html#configure_logging)
## Misleading log msg messages
- "https://gitit.post.ch/projects/ISA/repos/zarquon/pull-requests/2/overview?commentId=61283"
@@ -370,7 +373,7 @@ Links (Aka argument amplifiers)
- "https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html"
## YAGNI (but also KISS and DRY)
-- [YAGNI, KISS and DRY](https://medium.com/swlh/yagni-and-dry-the-kiss-of-death-for-your-software-project-cfd44b0654b6#fc82)
+- [YAGNI, KISS and DRY](https://medium.com/swlh/yagni-and-dry-the-kiss-of-death-for-your-software-project-cfd44b0654b6)
- [eagle queue json only](https://gitit.post.ch/projects/ISA/repos/eagle/pull-requests/331/overview?commentId=236944)
- [How to repair KISS](https://gitit.post.ch/projects/ISA/repos/preflux/pull-requests/304/diff)
- [won't stream, bcause YAGNI](https://gitit.post.ch/projects/ISA/repos/bangbang/pull-requests/5/overview?commentId=316503)
@@ -578,3 +581,12 @@ Links (Aka argument amplifiers)
## Tools like tcpdump are incredibly important
- [tcpdump discovers the truth once more](https://jira.post.ch/browse/SDCISA-13746?focusedId=1939377&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1939377)
+## MUST have an issue
+- [no-issue PR gets sued](https://gitit.post.ch/projects/ISA/repos/preflux/pull-requests/721/overview?commentId=349529)
+
+## STOP using stupid local times use UTC
+- [3 simple rules](https://dev.to/corykeane/3-simple-rules-for-effectively-handling-dates-and-timezones-1pe0)
+
+## WARN clustering is NOT the solution
+- [trin kill performance with shared counter](https://gitit.post.ch/projects/ISA/repos/trin/pull-requests/155/overview?commentId=352721)
+
diff --git a/doc/note/openshift/dbg-mem-issues.txt b/doc/note/openshift/dbg-mem-issues.txt
index 0435081..16e574d 100644
--- a/doc/note/openshift/dbg-mem-issues.txt
+++ b/doc/note/openshift/dbg-mem-issues.txt
@@ -136,3 +136,34 @@ true \
&& <"$F" ${MemLeakTry1:?} --date "${DATE:?}" > "${F%.*}.csv" \
;done)
+
+
+
+
+
+
+Zwischenfall auf INT 20231124
+
+
+
+`# Create heap dump`
+com.sun.management.dumpHeap("/usr/local/vertx/houston-storage-file/houston-___-heap-2023____-____Z.hprof", true)
+
+`# Inspect`
+${OC:?} exec -i "$(${OC:?} get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && ls -Ahl'
+
+true `# Get made heap dump` \
+ && if test ! -d heapDump; then echo "Dir heapDump missing"; false ;fi \
+ && echo create checksum. \
+ && ${OC:?} exec -i "$(${OC:?} get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && md5sum -b houston-*.hprof >> MD5SUM-$(date -u +%Y%m%d-%H%M%SZ)' \
+ && echo checksum done. Begin dload. \
+ && ${OC:?} exec -i "$(${OC:?} get pods|egrep ston-[1-9]|cut -f1 -d' ')" -- sh -c 'cd /usr/local/vertx/houston-storage-file && tar c houston-*.hprof MD5SUM*' | (cd heapDump && tar x) \
+ && echo dload done \
+ && true
+
+
+
+
+
+
+
diff --git a/doc/note/redis/redis.txt b/doc/note/redis/redis.txt
new file mode 100644
index 0000000..d64948a
--- /dev/null
+++ b/doc/note/redis/redis.txt
@@ -0,0 +1,32 @@
+
+Redis
+================
+
+
+## Run redis commands from cli
+
+redis-cli -a ***** SCAN 0
+
+
+## Example commands
+
+SCAN 0 COUNT 42
+TYPE key
+GET redisques:queues:vehicleoperation-events-for-vehicle-9942
+LRANGE key start stop
+LRANGE key 1 1 (get head)
+LRANGE key -1 -1 (get tail)
+
+
+## List all keys (WARN: do NOT in production!)
+
+SCAN 0 MATCH *part:of:key:* COUNT 42
+KEYS *:part:inside-the:key:*
+KEYS redisques:queues:vehicleoperation-events-for-vehicle-*
+
+
+## Delete by pattern
+
+redis-cli --scan --pattern schedulers:* | xargs redis-cli del
+
+