Wednesday, December 8, 2021

Mongo : Kubectl replace Selector and Label - Service : Install ps : Vim Jump to 1st Line : Vim Search : JVM Info in Linux


mongorestore -d IDS_Extraction_Application_Form -c DataPrepConfig collections/DataPrepConfig.bson
mongorestore -d IDS_Extraction_Application_Form -c ExperimentConfig collections/ExperimentConfig.bson
mongorestore -d IDS_Extraction_Application_Form -c ExperimentModel collections/ExperimentModel.bson
mongorestore -d IDS_Extraction_Application_Form -c Project collections/Project.bson
mongorestore -d IDS_Extraction_Application_Form -c Tag collections/Tag.bson
mongorestore -d IDS_Extraction_Application_Form -c TagGroup collections/TagGroup.bson
mongorestore -d IDS_Extraction_Application_Form -c TemplateStructureConfig collections/TemplateStructureConfig.bson
mongorestore -d IDS_Extraction_Application_Form -c hibernate_sequences collections/hibernate_sequences.bson


- apiVersion: v1
  kind: Service
  metadata:
    labels:
      io.qa.service: ids-page-classification-runtime
    name: ids-page-classification-runtime
    namespace: amex-poc
  spec:
    ports:
    - port: 8096
      targetPort: 8096
      protocol: TCP
    selector:
      io.qa.service: ids-page-classification-runtime
    type: ClusterIP

kubectl cp mongodb-2:/tmp/10Aug2021/  .  -n fda
kubectl cp collections mongodb-0:/tmp/
kubectl cp pdf vea-cc-5c6d5fd4dd-nrp9w:/tmp
kubectl cp  vea-cc-6b8469fd57-m99g7:/tmp/Dump  .  -n cs

npm install
npm run build_dev


https://stackoverflow.com/questions/26982274/ps-command-doesnt-work-in-docker-container
apt-get update && apt-get install -y procps

stackoverflow.com/questions/5317152/getting-the-parameters-of-a-running-jvm/17400304#17400304
jinfo -flags <vmid> 
jinfo -sysprops <vmid>

ENTRYPOINT java -Xms4884M -Xmx6144M -XX:+HeapDumpOnOutOfMemoryError -jar -Dserver.port=8081 target/vea-command-center.jar --spring.config.location=/usr/bin/vea/vea-command-center/src/main/resources/application.yml

ENTRYPOINT java -jar -Dserver.port=8081 target/vea-command-center.jar --spring.config.location=/usr/bin/vea/vea-command-center/src/main/resources/application.yml

https://akobor.me/posts/heap-size-and-resource-limits-in-kubernetes-for-jvm-applications




2021-12-08 05:54:12 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-1.mongodb:27017] INFO  - Server mongodb-1.mongodb:27017 does not appear to be a member of an initiated replica set.
2021-12-08 05:54:12 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-2.mongodb:27017] INFO  - Server mongodb-2.mongodb:27017 does not appear to be a member of an initiated replica set.
2021-12-08 05:54:20 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Server mongodb-0.mongodb:27017 does not appear to be a member of an initiated replica set.
2021-12-08 05:54:22 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-1.mongodb:27017] INFO  - Server mongodb-1.mongodb:27017 does not appear to be a member of an initiated replica set.
2021-12-08 05:54:22 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-2.mongodb:27017] INFO  - Server mongodb-2.mongodb:27017 does not appear to be a member of an initiated replica set.
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Monitor thread successfully connected to server with description ServerDescription{address=mongodb-0.mongodb:27017, type=REPLICA_SET_PRIMARY, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 27]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=699137, setName='rs0', canonicalAddress=mongodb-0:27017, hosts=[mongodb-0:27017], passives=[], arbiters=[], primary='mongodb-0:27017', tagSet=TagSet{[]}, electionId=7fffffff0000000000000001, setVersion=1, lastWriteDate=Wed Dec 08 05:54:27 UTC 2021, lastUpdateTimeNanos=9982679452786567}
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Adding discovered server mongodb-0:27017 to client view of cluster
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Server mongodb-0.mongodb:27017 is no longer a member of the replica set.  Removing from client view of cluster.
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Closed connection [connectionId{localValue:4, serverValue:206862320}] to mongodb-0.mongodb:27017 because there was a socket exception raised on another connection from this pool.
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Server mongodb-1.mongodb:27017 is no longer a member of the replica set.  Removing from client view of cluster.
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Server mongodb-2.mongodb:27017 is no longer a member of the replica set.  Removing from client view of cluster.
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0.mongodb:27017] INFO  - Canonical address mongodb-0:27017 does not match server address.  Removing mongodb-0.mongodb:27017 from client view of cluster
2021-12-08 05:54:30 [cluster-ClusterId{value='61aee955e1ffbc66232fb4f3', description='null'}-mongodb-0:27017] INFO  - Exception in monitor thread while connecting to server mongodb-0:27017


https://stackoverflow.com/questions/50259015/connection-refused-to-kubernetes-service
Connection Refused to Kubernetes Service
You should map the service to the right ports.



https://linuxize.com/post/vim-search/
Press /.
Type the search pattern.
Press Enter to perform the search.
Press n to find the next occurrence or N to find the previous occurrence.




https://cyberciti.biz/faq/howto-unix-linux-vi-vim-jump-to-end-of-file/
1G

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass