Blockrazor / blockrazor

Absolutely ALL information about EVERY blockchain project in a comparison tool that ANYONE can understand. Administered by @gazhayes
Mozilla Public License 2.0
47 stars 54 forks source link

problem: bad performance with site #1873

Closed AshHimself closed 6 years ago

AshHimself commented 6 years ago

problem: bad performance with site, its loading really slow for me. Loading a currency on my local instance is taking like 15-17 seconds.

Solution: Ideally I would get Kadira going and see where its performing badly but I think we can all provide some input.

Ayanrocks commented 6 years ago

Changing from blaze to react can fix it with added ssr.

gsovereignty commented 6 years ago

I was pretty fast before (3-4 secs), when did this change for you?

AshHimself commented 6 years ago

@gazhayes the speed? If so, then i'd say its been getting gradually slower and in the last month or so. Is it just me? or is it fast for everyone else.

The currency view page does have A LOT of DOM elements and Blaze just craps itself with too many DOM elements.

gsovereignty commented 6 years ago

Kadira to the rescue methinks

AshHimself commented 6 years ago

:) https://medium.com/@foodfitnesscode/setting-up-kadira-on-a-ubuntu-16-04-server-part-1-a821cdddd1e6

gsovereignty commented 6 years ago

guess I better do it, unless someone else volunteers

anbud commented 6 years ago

I'm not sure what's different, but it still takes about 3-4 seconds to load a currency on a local server for me. But, Kadira will help us anyway. If you haven't started working on it @gazhayes, I can do it. :)

gsovereignty commented 6 years ago

@anbud you want me to give you a fresh ububtu server to work with?

AshHimself commented 6 years ago

@gazhayes not sure if the box is ready but I can get the ball moving if it is.

gsovereignty commented 6 years ago

I can have her fired up in an hour.

AshHimself commented 6 years ago

How'd yah get on mate? @gazhayes

gsovereignty commented 6 years ago

oops, forgot.

gareth@58.152.37.119 password sent by email

samuelralak commented 6 years ago

there’s been little change in regards to performance on my end, though am assuming that the situation will change as blockrazor grows. good thing this came up now

On Mon, 10 Sep 2018 at 09:55, Gareth Hayes notifications@github.com wrote:

oops: gareth@58.152.37.119 password sent by email

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Blockrazor/blockrazor/issues/1873#issuecomment-419807897, or mute the thread https://github.com/notifications/unsubscribe-auth/AEROiJJk17Hck7fMRr3CQ4UP-2ajBOFJks5uZgzmgaJpZM4WgTJk .

AshHimself commented 6 years ago

@anbud @gazhayes - I have Kadira running but getting some CORS issues which is stopping data being sent to the server. Anyone have experiance in this? I can keep looking but obviously looking for the fastest path to resolution :)

http://58.152.37.119:4000/ admin@gmail.com admin

anbud commented 6 years ago

Change this line to 'Access-Control-Allow-Origin': '*',, restart the server and it'll probably fix the issue.

AshHimself commented 6 years ago

Let me have a look, I’m using a docker image so not sure I can just change it easily ?

On Mon, 10 Sep 2018 at 6:47 pm, Andrej Budinčević notifications@github.com wrote:

Change this line https://github.com/kadira-open/kadira-server/blob/74a7fa8ca4f8f90d2ad0e35a42a8997152619861/kadira-engine/lib/utils.js#L11 to 'Access-Control-Allow-Origin': '*',, restart the server and it'll probably fix the issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Blockrazor/blockrazor/issues/1873#issuecomment-419870634, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJEyhQjWAiBUqa71ImgMrMlJhuejH0Nks5uZkM3gaJpZM4WgTJk .

AshHimself commented 6 years ago

@anbud i've resolved this CORS issue, but i'm just getting NO data sent to Kadira :/

I am using this docker package. https://github.com/edemaine/kadira-compose i'll be signing off for the night in about an hour if you want to take a look? Everything else is working perfect.

I am getting;

Kadira: authentication failed - check your appId & appSecret

anbud commented 6 years ago

Hmm, yeah, email me the server details and I'll take a look what's happening. :)

anbud commented 6 years ago

I spent quite some time looking for a solution and it appears that it was as simple as adding ?replicaSet=kadira to docker-compose.yml file. The UI and the engine were using different mongodb instances hence the discrepancies between data.

It's fixed now, and in #1881 I've connected Blockrazor to our Kadira instance. It seems to be getting the correct data as far as I've tested it locally.

AshHimself commented 6 years ago

@anbud - nice work mate!

Can you upgrade the account as well? I would but i'm traveling right now.

anbud commented 6 years ago

Sure thing. :)

anbud commented 6 years ago

Upgraded.

gsovereignty commented 6 years ago

Closing this as Kadira is up, performance related issues can be logged separately.