Skip to content

Commit 026300d

Browse files
Merge pull request #368 from ByteInternet/object_storage_improvements
Object storage improvements
2 parents cf6d080 + 68d179c commit 026300d

File tree

11 files changed

+211
-130
lines changed

11 files changed

+211
-130
lines changed

bin/watch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ from time import sleep
77

88

99
def build_docs():
10-
subprocess.check_call("bin/build_docs")
10+
subprocess.run("bin/build_docs")
1111

1212

1313
def refresh_assets():

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121

2222
# -- Project information -----------------------------------------------------
2323

24-
project = "Docs"
24+
project = "Documentation"
25+
html_title = "Hypernode Documentation"
2526
current_year = datetime.now().year
2627
copyright = f"{current_year}, Hypernode"
2728
author = "Hypernode"
2829

2930
# The full version, including alpha/beta/rc tags
30-
release = "dev"
31+
release = "latest"
3132

3233

3334
# -- General configuration ---------------------------------------------------

docs/ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ aws s3 sync var/import_export s3://my_bucket_name/import_export
100100
Both methods are significantly faster than Magento’s built-in sync, as aws s3 sync handles uploads concurrently.
101101

102102
```{tip}
103-
More information about the `hypernode-object-storage` command can be found in the [Object Storage article](../../hypernode-platform/object-storage/getting-started-with-object-storage.md).
103+
More information about the `hypernode-object-storage` commands can be found in the [Object Storage documentation](../../hypernode-platform/object-storage.md).
104104
```
105105

106106
## The storage flag file in the bucket

docs/ecommerce-applications/shopware-6/how-to-configure-remote-storage-for-shopware-6-x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ aws s3 sync public/media/ s3://bucket_name/media/
9696
```
9797

9898
```{tip}
99-
More information about the `hypernode-object-storage` command can be found in the [Object Storage article](../../hypernode-platform/object-storage/getting-started-with-object-storage.md).
99+
More information about the `hypernode-object-storage` command can be found in the [Object Storage documentation](../../hypernode-platform/object-storage.md).
100100
```
101101

102102
## Serving assets from your S3 bucket

docs/hypernode-platform/object-storage.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,24 @@ redirect_from:
1010

1111
# Object Storage
1212

13+
Hypernode Object Storage provides an option to store media files, assets, backups, documents, etc in a persistent, remote storage container.
14+
15+
Object storage eliminates redundancy and provides a centralized, scalable solution for storing application assets, session data, and backups.
16+
17+
By default, media files are stored in the same filesystem that contains the application. This is inefficient for complex, multi-server configurations, and can result in degraded performance when sharing resources.
18+
19+
With Object Storage you get:
20+
21+
- Effortless Data Sharing – Seamless access across all Hypernodes
22+
- Full Access Control & Security – Secure and manage your data with ease
23+
- Safe Backup & Monitoring – Ensure reliability with built-in insights
24+
1325
```{toctree}
1426
---
1527
caption: Table of Contents
1628
maxdepth: 1
1729
glob:
1830
---
31+
object-storage/getting-started
1932
object-storage/*
2033
```
41 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how to cancel Hypernode Object Storage
5+
title: Hypernode Object Storage | Cancellation
6+
---
7+
8+
# Cancellation
9+
10+
To cancel an Object Storage Workspace, you can SSH into the Hypernode that is linked to that Object Storage and run `hypernode-object-storage cancel`.
11+
12+
```{note}
13+
The cancellation will be in effect from the end of the month.
14+
Also if you change your mind or forgot to pull some data. It will still be available for 7 days after the cancellation. You can always reach out to the support team for help if that happens.
15+
```

docs/hypernode-platform/object-storage/getting-started-with-object-storage.md

Lines changed: 0 additions & 125 deletions
This file was deleted.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Getting started with Object Storage
5+
title: Hypernode Object Storage | Getting Started
6+
redirect_from:
7+
- hypernode-platform/object-storage/getting-started-with-object-storage
8+
---
9+
10+
# Getting started with Hypernode Object Storage
11+
12+
You can run the CLI command with the `--help` flag to find out about all the options and arguments.
13+
14+
```bash
15+
hypernode-object-storage --help
16+
```
17+
18+
## Creating a Hypernode Object Storage Workspace
19+
20+
**Command-line interface (CLI)**
21+
22+
1. SSH into your server.
23+
1. Run `hypernode-object-storage create`
24+
1. Fill in the prompts with a name and desired storage.
25+
1. Confirm your order and give it a few minutes before your storage is ready.
26+
27+
**Control Panel**
28+
29+
1. Go to the [Control Panel](https://my.hypernode.com).
30+
1. Click the **Order a workspace** button in the top-right.
31+
1. Select the desired options for your workspace and proceed to checkout.
32+
33+
```{note}
34+
You can use one object storage across multiple Hypernodes. But you can only use one object storage space per Hypernode.
35+
```
36+
37+
## Retrieve object storage information
38+
39+
**Command-line interface (CLI)**
40+
41+
1. Run `hypernode-object-storage info`
42+
1. If you want to retrieve your credentials for the workspace pass in the flag `--with-credentials`.
43+
44+
The output should look like the following:
45+
46+
```console
47+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage info
48+
UUID | d8770125-6c90-4770-b00f-1716f699990a
49+
Name | example-storage
50+
Plan | OS50GB
51+
Versioning | Disabled
52+
Hypernodes | example
53+
Endpoint URL | **sensitive**
54+
Access Key | **sensitive**
55+
Secret Key | **sensitive**
56+
```
57+
58+
**Control Panel**
59+
60+
1. Go to the [Control Panel](https://my.hypernode.com).
61+
1. Click on the **Object Storage** tab in the left sidebar.
62+
1. Click your workspace.
63+
1. Click the **Show credentials** button in the top-right corner.
64+
65+
You can use the credentials and the URL now to configure remote storage for your application with the help of the following articles:
66+
67+
1. [How to configure remote storage for Magento 2.x](../../ecommerce-applications/magento-2/how-to-configure-remote-storage-for-magento-2-x.md)
68+
1. [How to configure remote storage for Shopware 6.x](../../ecommerce-applications/shopware-6/how-to-configure-remote-storage-for-shopware-6-x.md)
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
myst:
3+
html_meta:
4+
description: Learn how to manage objects in Hypernode Object Storage
5+
title: Hypernode Object Storage | Managing Objects
6+
---
7+
8+
# Managing Objects
9+
10+
You can manage your objects using the `hypernode-object-storage objects` subcommand.
11+
It supports all common operations--listing, copying, moving, and deleting files--while also allowing you to sync files in the background and monitor the progress of an ongoing sync.
12+
13+
```console
14+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects --help
15+
usage: hypernode-object-storage objects [-h] {sync,cp,ls,mv,rm,show} ...
16+
17+
Manage objects in object storage
18+
19+
positional arguments:
20+
{sync,cp,ls,mv,rm,show}
21+
sync Synchronize files between a local directory and an object storage location
22+
cp Copy a file or object from one location to another
23+
ls List objects in an S3 bucket or folder
24+
mv Move or rename a file or object
25+
rm Delete an object from S3
26+
show Display the current status of an ongoing sync process
27+
28+
options:
29+
-h, --help show this help message and exit
30+
```
31+
32+
It is important to note that `hypernode-object-storage objects` supports all optional flags available in `aws s3`, allowing you to customize its behavior for advanced configurations.
33+
34+
## Syncing files and monitoring progress
35+
36+
Syncing files between your local directory and object storage is simple. Run the following command:
37+
38+
```console
39+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects sync /example/local/path/ s3://example/bucket/uri/
40+
Syncing objects from /example/local/path/ to s3://example/bucket/uri/...
41+
Sync process started with PID 1234 in the background.
42+
```
43+
44+
The `sync` operation runs in the background, and you can monitor its progress by using the `show` command, for example:
45+
46+
```console
47+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234
48+
Completed 9.7 GiB/~30.0 GiB (118.2 MiB/s) with ~5 file(s) remaining (calculating...)
49+
```
50+
51+
If you run the `show` command after the sync operation has finished, you’ll see output like this:
52+
53+
```console
54+
app@abcdef-example-magweb-cmbl:~$ hypernode-object-storage objects show 1234
55+
Process 1234 does not exist anymore
56+
```

0 commit comments

Comments
 (0)