Skip to content

Commit 64c3fc8

Browse files
committed
cloud filesystem -- video links and better explanations
1 parent ff8c669 commit 64c3fc8

File tree

3 files changed

+72
-28
lines changed

3 files changed

+72
-28
lines changed

src/packages/frontend/compute/cloud-filesystem/cloud-filesystems.tsx

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,19 +148,40 @@ export default function CloudFilesystems({ project_id }: Props) {
148148

149149
return (
150150
<div>
151-
<Button style={{ float: "right" }} onClick={refresh}>
151+
<Button style={{ position: "absolute", right: 0 }} onClick={refresh}>
152152
<Icon name="refresh" />
153153
Refresh{" "}
154154
{refreshing ? <Spin style={{ marginLeft: "15px" }} /> : undefined}
155155
</Button>
156156
<h2 style={{ textAlign: "center" }}>Cloud Filesystems</h2>
157-
<p style={{ maxWidth: "700px", margin: "15px auto" }}>
157+
<div style={{ textAlign: "center" }}>
158+
<Button
159+
href="https://youtu.be/zYoldE2yS3I"
160+
target="_new"
161+
style={{ marginRight: "15px" }}
162+
>
163+
<Icon name="youtube" style={{ color: "red" }} />
164+
Short Demo
165+
</Button>
166+
<Button href="https://youtu.be/uk5eA5piQEo" target="_new">
167+
<Icon name="youtube" style={{ color: "red" }} />
168+
Longer Demo
169+
</Button>
170+
</div>
171+
<p
172+
style={{
173+
maxWidth: "700px",
174+
margin: "15px auto",
175+
fontSize: "11pt",
176+
color: "#666",
177+
}}
178+
>
158179
CoCalc Cloud Filesystems are scalable distributed POSIX shared
159-
filesystems with fast local caching. They are mounted and usable
160-
simultaneously from all compute servers in a project. There are no
161-
limits on how much data you can store. You do not specify the size of a
162-
cloud filesystem in advance. The cost per GB is typically much less than
163-
a compute server disk, but you pay for how many operations you do.
180+
filesystems with fast local caching. Use them simultaneously from all
181+
compute servers in this project. There are no limits on how much data
182+
you can store. You do not specify the size of a cloud filesystem in
183+
advance. The cost per GB is typically much less than a compute server
184+
disk, but you pay network usage and operations.
164185
</p>
165186

166187
<div style={{ margin: "5px 0" }}>
Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Modal } from "antd";
2+
import { A } from "@cocalc/frontend/components";
23

34
export function HelpModal({ open, setOpen }) {
45
return (
@@ -17,44 +18,64 @@ export function HelpText() {
1718
return (
1819
<div>
1920
<h2>Filesystem Commands</h2>
20-
Type <code>cocalc fs -h</code> in a terminal running on a compute server
21-
to see the options for the filesystem cocalc subcommand. This command has
22-
several helpful subcommands for working with Cloud Filesystems, including
23-
the following:
21+
<p>
22+
Type <code>cocalc -h</code> in a terminal running on a compute server to
23+
see the options for working with Cloud Filesystems. In most cases you
24+
should run the <code>cocalc</code> command in a terminal from in a
25+
directory in the cloud filesystem (similar to how git is aware of the
26+
repo you are in).
27+
</p>
28+
<p>
29+
The <code>cocalc warmup</code> command is especially important to know
30+
about.
31+
</p>
2432
<ul style={{ marginTop: "15px" }}>
2533
<li>
2634
<strong>
27-
<code>cocalc fs stats &lt;path&gt;</code>:
35+
<code>cocalc warmup </code>:
2836
</strong>{" "}
29-
Show realtime performance statistics of a Cloud Filesystem. In
30-
particular, you can see what objects are being uploaded or downloaded
31-
to better understand network usage, and whether any data is not yet
32-
uploaded before turning off a compute server.
37+
Downloads chunks for the current working directory to the local disk
38+
cache for much faster subsequent access. The disk cache (which is in
39+
<code>/data/.cloud-filesystem/cache/</code>) uses up to 90% of your
40+
disk and survives reboots but not deprovisioning. You may get much
41+
better performance with a Cloud Filesystem by enlarging a compute
42+
server's disk (which is easy to do at any time), since then more of it
43+
can be used for cache.
3344
</li>
34-
3545
<li>
3646
<strong>
37-
<code>cocalc fs sync &lt;source&gt; &lt;dest&gt;</code>:
47+
<code>cocalc backup</code>:{" "}
48+
</strong>
49+
Create and manage incremental backups. Run this command with no
50+
arguments from within the cloud filesystem to make a backup that is
51+
stored inside of the cloud filesystem itself. You can also make
52+
backups to other cloud filesystems or directories.
53+
</li>
54+
<li>
55+
<strong>
56+
<code>cocalc sync &lt;source&gt; &lt;dest&gt;</code>:
3857
</strong>{" "}
3958
Efficiently sync files from a source directory to a dest directory.
4059
This is similar to rsync but potentially much faster since it is aware
41-
of how Cloud Filesystem stores data. It's also an efficient way to get
60+
of how Cloud Filesystems store data. It's also an efficient way to get
4261
data into and out of your Cloud Filesystem.
4362
</li>
44-
4563
<li>
4664
<strong>
47-
<code>cocalc fs warmup &lt;path&gt;</code>:
65+
<code>cocalc cloudfs stat</code>:
4866
</strong>{" "}
49-
Downloads all the chunks for the given path to the local disk cache
50-
for much faster subsequent access. The disk cache (which is in
51-
<code>/data/.cloud-filesystem/cache/</code>) uses up to 90% of your
52-
disk and survives reboots but not deprovisioning. You may get much
53-
better performance with a Cloud Filesystem by enlarging your compute
54-
servers main disk (which is easy to do at any time), since then more
55-
of it can be used for cache.
67+
Show realtime performance statistics of a Cloud Filesystem. In
68+
particular, you can see what objects are being uploaded or downloaded
69+
to better understand network usage, and whether any data is not yet
70+
uploaded before turning off a compute server.
5671
</li>
5772
</ul>
73+
Cloud Filesystems use <A href="https://juicefs.com/en/">JuiceFS</A> under
74+
the hood, and there is also a{" "}
75+
<A href="https://juicefs.com/docs/community/command_reference">
76+
juicefs command
77+
</A>{" "}
78+
that you can explore.
5879
</div>
5980
);
6081
}

src/packages/frontend/frame-editors/crm-editor/tables/cloud-filesystems.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ register({
1313
id: null,
1414
project_id: null,
1515
account_id: null,
16+
bytes_used: null,
1617
bucket: null,
1718
bucket_storage_class: null,
1819
bucket_location: null,
@@ -31,6 +32,7 @@ register({
3132
deleting: null,
3233
mount_options: null,
3334
keydb_options: null,
35+
purchase_id: null,
3436
},
3537
],
3638
},

0 commit comments

Comments
 (0)