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 realm/realm-object-server-private#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 kraenhansen force-pushed the kh/realm-size-realm branch from 6d8c262 to 624a603 Dec 17, 2018
@kraenhansen
Copy link
Member Author

@kraenhansen 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
1 check passed
@kraenhansen kraenhansen deleted the kh/realm-size-realm branch Dec 18, 2018
@robowen5mac
Copy link

@robowen5mac 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

@kraenhansen kraenhansen commented Apr 23, 2019

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

@jeanbaptistebeau jeanbaptistebeau commented Jul 20, 2020

@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 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

@jeanbaptistebeau jeanbaptistebeau commented Jul 20, 2020

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

@ianpward
Copy link

@ianpward ianpward commented Jul 20, 2020

@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

@jeanbaptistebeau jeanbaptistebeau commented Jul 21, 2020

@ianpward Oh yeah that will work, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants