Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Realm sizes from a /__metrics Realm #1028

Merged
merged 30 commits into from Dec 18, 2018
Merged

Conversation

kraenhansen
Copy link
Member

@kraenhansen kraenhansen commented Dec 3, 2018

Together with https://github.com/realm/realm-object-server-private/pull/1361 this fixes #938.

It also fixes #917, showing the connection state for the and #396 for the ServerAdministration window.

It also adds usage of the react-realm-context library to the ServerAdministration window.

I've added a note to the release notes on the dependency on a new version of the server, but since this is fixing a broken feature I don't consider that a breaking change.

Table of Realms with a single size column

Note how both data (state) and file size is shown in a single column. Hovering either reveals a tooltip so users can determine which is which. Also note the green connection state indicator in the top right corner of the window.

skaermbillede 2018-12-17 kl 14 15 36

Selecting a Realm with a size

Note both sizes on the same line and the "Recalculate size" button was moved to the controls section of the sidebar.

skaermbillede 2018-12-17 kl 14 15 40

Selecting a Realm without a size

skaermbillede 2018-12-17 kl 14 15 44

@kraenhansen kraenhansen self-assigned this Dec 3, 2018
@kraenhansen
Copy link
Member Author

kraenhansen commented Dec 17, 2018

I updated the screenshots to match the current state of this PR, holding back on releasing this until I'm sure the Cloud instances run with state size reporting turned on.

@kraenhansen kraenhansen merged commit 83fe4bf into master Dec 18, 2018
@kraenhansen kraenhansen deleted the kh/realm-size-realm branch December 18, 2018 10:31
@robowen5mac
Copy link

robowen5mac commented Apr 18, 2019

Has this change been released? In the version of the app I can download (3.5.0) on a Mac, I cannot see the size columns shown above. I am connecting to a realm hosted ROS and have tried to clean and reinstall the app, but nothing I do seems to show the columns shown above

image

I think I found the answer and apologies for not finding it before, but unless I am wrong, this feature is not available for Realm hosted ROS instances:
https://forums.realm.io/t/how-can-i-see-the-size-of-realms-in-realm-cloud/1441/6

@kraenhansen
Copy link
Member Author

but nothing I do seems to show the columns shown above

These columns will only show if a non-empty /__metrics Realm exists on the server.

@jeanbaptistebeau
Copy link

@kraenhansen does this need manual configuration? Can't find any doc about this. The size column is also not showing up for me, same as @robowen5mac, how can I make it visible?

@kraenhansen
Copy link
Member Author

kraenhansen commented Jul 20, 2020

Are you connecting to an instance running in the Realm Cloud?
If yes, the computation of Realm state size was disabled by default since it was more computationally intensive than we initially expected it to be. It might be possible to enabled for single dedicated server instances, please create a support ticket if you have a dedicated instance.

@jeanbaptistebeau
Copy link

Yes, it's running in Realm Cloud. So there's no way to see the size of Realms?

@ianpward
Copy link

@jeanbaptistebeau You can use the ProgressNotification API to get the amount of data to be downloaded -
https://docs.realm.io/sync/using-synced-realms/syncing-data#progress-notifications

@jeanbaptistebeau
Copy link

@ianpward Oh yeah that will work, thanks!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't see data sizes of Realms in Studio As a user I would like to know if Studio is connected to ROS
5 participants