Skip to content

Commit 8205a30

Browse files
committed
Sort examples with index
Signed-off-by: trafalgarzzz <[email protected]>
1 parent 4757284 commit 8205a30

File tree

12 files changed

+32
-0
lines changed

12 files changed

+32
-0
lines changed
File renamed without changes.
File renamed without changes.

examples/01_fluidapis/vineyard.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2024 The Fluid Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import fluid
16+
from fluid import constants
17+
from fluid import models
18+
19+
client_config = fluid.ClientConfig()
20+
fluid_client = fluid.FluidClient(client_config)
21+
22+
fluid_client.create_dataset(dataset_name="vineyard")
23+
24+
dataset = fluid_client.get_dataset(dataset_name="vineyard")
25+
26+
dataset.bind_runtime(
27+
runtime_type=constants.VINEYARD_RUNTIME_KIND,
28+
replicas=2,
29+
cache_capacity_GiB=30,
30+
cache_medium="MEM",
31+
wait=True
32+
)
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)