Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion hadoop-ozone/dist/src/main/compose/ozoneperf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,25 @@ Start the cluster with `docker-compose`
docker-compose up -d
```

Note: The freon test will be started after 30 seconds.
Scale datanodes up:

```
docker-compose up -d --scale datanode=3
```

You can enter to the SCM container and start a freon test:

```
docker-compose exec scm bash
ozone freon ockg -n1000
```

Or you can start freon instances in containers (to make it possible to scale them up):
If all the datanodes are started, start the freon instance:

```
docker-compose -f docker-compose.yaml -f freon-ockg.yaml up --scale datanode=3 -d
```

## How to use

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ services:
command: ["--config.file","/etc/prometheus.yml"]
ports:
- 9090:9090
freon:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
environment:
SLEEP_SECONDS: 30
env_file:
- ./docker-config
command: ["ozone","freon","rk"]
grafana:
image: grafana/grafana
volumes:
Expand Down
25 changes: 25 additions & 0 deletions hadoop-ozone/dist/src/main/compose/ozoneperf/freon-ockg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

version: "3"
services:
freon:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
env_file:
- ./docker-config
command: ["ozone","freon","ockg","-n100000"]
25 changes: 25 additions & 0 deletions hadoop-ozone/dist/src/main/compose/ozoneperf/freon-rk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

version: "3"
services:
freon:
image: apache/ozone-runner:${OZONE_RUNNER_VERSION}
volumes:
- ../..:/opt/hadoop
env_file:
- ./docker-config
command: ["ozone","freon","rk"]