Commit Graph

34 Commits (9abfec7c5fbf964ccae93eb4e4487efb54db59ff)

Author SHA1 Message Date
Oleksandr Garagatyi 7d5dc07b19 CHE-8350: fix placement of workspace files storage on container host
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2018-01-19 13:52:31 +02:00
Oleksandr Garagatyi 5466e48cbd
Cleanup unused properties (#8309) 2018-01-16 18:18:19 +02:00
Mykhailo Kuznietsov 3d7f1a1abf
Fix Che using different database path in different versions (#8073) 2018-01-15 10:02:12 +02:00
Sergii Kabashniuk 5686615922
Allow overriding wsagent and maven server ram (#8023)
Removed limitation for environment variables values to be less than 255 characters.
User can set JAVA_OPTS in env variables of workspace
User can set MAVEN_OPTS in env variables of workspace
User can set CHE_WORKSPACE_WSAGENT_JAVA_OPTIONS java opts to adjust java opts of ws-agent
User can set CHE_WORKSPACE_MAVEN__SERVER__JAVA__OPTIONS java opts to adjust java opts of the maven server
Admin can set CHE_WORKSPACE_JAVA__OPTIONS to adjust default value of JAVA_OPTS of all workspaces
Admin can set CHE_WORKSPACE_MAVEN__OPTIONS to adjust default value of MAVEN_OPTS of all workspaces
Admin can set CHE_WORKSPACE_WSAGENT__JAVA__OPTIONS to adjust default value of JAVA_OPTS of all ws-agents
Admin can set CHE_WORKSPACE_MAVEN__SERVER__JAVA__OPTIONS to adjust default value of JAVA_OPTS of all maven servers
If admin will configure CHE_WORKSPACE_HTTP__PROXY this values will be used in JAVA_OPTS , MAVEN_OPTS , and jvm options for ws-agent and maven-server
che.workspace.java_options=-XX:MaxRAM=150m -XX:MaxRAMFraction=2 ...
che.workspace.maven_options=-XX:MaxRAM=150m -XX:MaxRAMFraction=2 ...
che.workspace.wsagent_java_options=-XX:MaxRAM=600m -XX:MaxRAMFraction=1 ...
che.workspace.maven_server_java_options=-XX:MaxRAM=128m -XX:MaxRAMFraction=1 ..

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2017-12-27 17:13:33 +02:00
Sergii Kabashniuk 026598d841
Optimize che-server ram usage on Docker (#7787)
Optimize che-server ram usage on Docker 
Proposal is to set container limit to 750M for both Docker and OpenShift and tune a bit GC

-XX:MaxRAMFraction=2 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Dsun.zip.disableMemoryMapping=true -Xms20m
Important parts

-XX:MaxRAMFraction=2 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap - tels jvm to use ~ CHE_MASTER_CONTAINER_RAM/MaxRAMFraction for heap
We need some space for off-heap activity. During test I saw VmRSS of jvm ~330_000k - 350_000k.
-XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 ask GC to keep heap compact in cost of some CPU.
You can see changes in heap usage pattern in images below.
2017-12-08 18:53:27 +02:00
Sergii Kabashniuk d5a81a6ae3
Configure che-server only from environment variables (#7299)
Removed default properties extraction from war.
Removed all usage of CHE_LOCAL_CONF_DIR
Forced unset of CHE_LOCAL_CONF_DIR to make sure that Eclipse Che server can be configured only with environment variables.
Changed location of default properties from /codenvy/che.properties to /che/che.properties
2017-11-12 20:46:49 +02:00
Max Shaposhnik ea7e071b3a
Use same assembly for single- and multiuser Che 2017-11-07 12:27:02 +02:00
Roman Iuvshyn cb58bfa875 Fix custom port network (#7044)
* Fix multiuser network with custom port
2017-10-27 15:28:18 +03:00
Max Shaposhnik 202ded08ec Merge branch 'master' into che-multiuser 2017-08-18 10:33:46 +03:00
Mykhailo Kuznietsov ce41b4a71d Change copyright owner to "Red Hat, Inc" on remaining files (#6032)
* Change copyright owner on remaining files

* fixup! Change copyright owner on remaining files

* fixup! fixup! Change copyright owner on remaining files
2017-08-17 18:05:53 +03:00
Sergii Kabashniuk c87d869caf Added ability to configure ds with environment variables 2017-08-15 17:34:40 +03:00
Max Shaposhnik c8b92fcc74 Merge with master 2017-08-11 16:42:29 +03:00
Mykhailo Kuznietsov 69d5148385 Changed copyright owner to "Red Hat, Inc." in license headers (#5964)
Change license header contributor to Red Hat, Inc.
2017-08-11 10:46:58 +03:00
Roman Iuvshyn e270461059 add possibility to configure postgres connection 2017-08-01 15:56:51 +03:00
Roman Iuvshyn 726b8adb4e initial 2017-07-28 17:16:43 +03:00
Roman Iuvshyn 1c8780e6d5 set custom network for che in multiuser mode 2017-07-27 17:27:07 +03:00
Max Shaposhnik 7231fc2723 marge with master 2017-06-22 14:24:00 +03:00
Roman Iuvshyn 8db4a361b6 use healthcheck for postgres container, some minor structure changes 2017-06-20 12:40:04 +03:00
Anton Korneta c34d359921 Change public stacks, recipes loading policy (#5234) 2017-06-20 11:31:00 +03:00
Florent BENOIT a13068e140 Enable single port exposure on Che (#5115)
* Toggle Che single port by enabling CHE_SINGLE_PORT in the che.env file. (CHE_SINGLE_PORT=true, default is false)

By enabling single-port, all browser traffic to Che or any workspace will be routed through the value that you have set to CHE_PORT`, or 8080 if not set. Setting this property will transform the launch sequence of Che to launch a Traefik reverse proxy. The reverse proxy will act as the traffic endpoint for all browser communications. When a new workspace is started or stopped, Che will update Traefik's configuration
with rules for how browser traffic should be routed to Che or a workspace.

It’s now using an official Traefik image (before I was using a custom made image)
There is an interceptor with a kill switch. It means interceptor is applied only if plug-in is enabled (not only if plug-in is added at compilation)
It is automatically enabled when CHE_SINGLE_PORT is turned on

docker-compose file is handling if the single_port is turned on or off and then add the traefik container and redirect port only if the property is enabled. (not enabled by default)

using —debug flag when launching che is also turning on the traffic web console to view traefik routes

It is not enabled by default, so it means that without user change, there is no overhead, no useless container started, etc.

Change-Id: I12644d9202dadc0b10104f78bb055425ca6611ac
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-05-18 14:52:41 +02:00
Roman Iuvshin 4813a1a712 fix CHE custom properties usage (#5103) 2017-05-17 10:33:33 +03:00
Alexander Garagatyi b3ce50f7cf Do not set debug log level when debug flag is used
Unset debug level when --debug is used to not use it as default behavior.
To set debug log level use env variable from CLI help.
2017-04-20 16:59:41 +03:00
Roman Iuvshin 12cf01a8ff fix cli config command, cli log, jmx setting (#4409)
* fix cli config command, cli log, jmx setting
2017-03-18 21:11:13 +02:00
Roman Iuvshin c487a5af2a Remove no proxy duplicates (#4285)
* Remove no proxy duplicates
2017-03-01 23:55:47 +02:00
Yevhenii Voevodin 02a60a29c1 Allow to override JAVA_OPTS from che.env 2017-02-15 10:58:27 +02:00
Tyler Jewell bb03ebd936 [cli] Simpler networking config explanation & command line overrides (#4114)
* Simpler networking config explanation & command line overrides
2017-02-14 19:01:23 +02:00
Yevhenii Voevodin 9370327d46 Inject MAVEN_OPTS environment variable along with JAVA_OPTS to container 2017-02-14 17:50:56 +02:00
Tyler Jewell 8287fb66d3 Refactor CLI: Faster boot, add `--help` global option, standardize command lifecycle (#4006)
Signed-off-by: Tyler Jewell <tjewell@codenvy.com>
* multi container fixup
* Update images
* add --help parameter
* move entrypoint
* remove empty
2017-02-06 07:37:08 -08:00
Florent BENOIT 6d459be382 machine logs should go in /logs/ folder as well (not in /data)
Change-Id: I
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2017-01-27 15:38:18 +01:00
Florent BENOIT eee092c76d in development mode, enable debug mode (it will start Tomcat with jpda mode) (#3371)
Fix #3367

Change-Id: I1de413e1e7b5fce4631055811b2b2b879b3052aa
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-13 09:17:38 -07:00
Roman Iuvshin 8cb09a8c39 fix no proxy issue (#3325)
* fix no proxy issue
2016-12-08 18:53:57 +02:00
Roman Iuvshin 4c587d5248 Configure Master & Agent JVMs to Inherit Proxy Settings (#3323)
* Configure Master & Agent JVMs to Inherit Proxy Settings
2016-12-08 15:59:43 +02:00
Florent BENOIT 4f83334a10 add all CHE_ properties to che.env file at first (#3246)
Change-Id: Ia7a48355d81dc1ba7b4b86726038637ef3e44e68
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-01 10:56:21 -07:00
Florent BENOIT 56ddd58481 Move eclipse/che-dockerfiles che-* images to this repository in /dockerfiles folder
Change-Id: I4c258775a4a67a87cba3b3dbfbc1af2cc2f8416f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-12-01 06:10:34 -07:00