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

most badges timeout on shields.io #640

Closed
thisconnect opened this issue Jan 22, 2016 · 13 comments
Closed

most badges timeout on shields.io #640

thisconnect opened this issue Jan 22, 2016 · 13 comments
Labels
bug Bugs in badges and the frontend performance-improvement Related to performance or throughput of the badge servers

Comments

@thisconnect
Copy link

Is it just me? Do the badges work on http://shields.io/ for somebody?

screen shot 2016-01-22 at 4 58 27 pm

@pmonks
Copy link

pmonks commented Jan 22, 2016

Very sporadic for me - they don't work more often than they do.

@pmonks
Copy link

pmonks commented Jan 22, 2016

See also issue #628.

@AdrieanKhisbe AdrieanKhisbe added bug Bugs in badges and the frontend performance-improvement Related to performance or throughput of the badge servers labels Jan 25, 2016
@zbeekman
Copy link

I too am experiencing this problem. I am thinking of removing shields.io badges from my projects due to this ongoing issue.

lmk123 added a commit to hcfyapp/crx-selection-translate that referenced this issue Jan 27, 2016
现在所有图标都显示不出来了。见 badges/shields#640
@Foorack
Copy link

Foorack commented Jan 30, 2016

I'm also experiencing this issue as of 30 Jan. It worked an hour ago.

@zbeekman
Copy link

We have moved all of our badges to other service providers, and downloaded and saved static badges as local assets due to this unreliable performance.

@aantron
Copy link

aantron commented Jan 30, 2016

👍

Second time last two weeks. Considering doing what @zbeekman did, annoying as it is.

screen shot 2016-01-30 at 12 45 26

@espadrine
Copy link
Member

Thanks for reporting. Since it was at a time before we split the load between two servers, I believe this issue is resolved.

@FezVrasta
Copy link
Contributor

FezVrasta commented Jan 17, 2017

I'm still experiencing it often @espadrine

image

image

@espadrine
Copy link
Member

@FezVrasta We've had a bad player today ☹.

image

Currently, I don't enforce rate limits. Maybe I should do that?

@FezVrasta
Copy link
Contributor

Not sure it's the problem, I'm experiencing these problems daily

@espadrine
Copy link
Member

There's two other items that are painful for the RAM, which gets the server swapped, which probably doesn't help:

  • bower downloads a lot of data over git. It can probably be implemented using https://bower.io/docs/api/ instead.
  • For PNG images, I spawn headless google chrome instances, which take about 1.3 GB of virtual memory. It is not too common, but usually when it happens, someone was loading a page which has several of them on it. Using inkscape instead would probably be less expensive (and also potentially fails at providing a number of features, but PNG is for compatibility anyway).

@FezVrasta
Copy link
Contributor

FezVrasta commented Jan 17, 2017

Why do you need PhantomJS or Inkscape for editing PNGs sever side? Isn't imagemagick enough?

convert -density 1200 -resize 200x200 source.svg target.png

Or also librsvg2-bin:

rsvg  -w 1024 -h 1024 infile.svg  outfile.png

Which can be used with Node https://www.npmjs.com/package/librsvg

Here several solutions:
http://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick

I'm preparing a PR.

@FezVrasta
Copy link
Contributor

#860

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs in badges and the frontend performance-improvement Related to performance or throughput of the badge servers
Projects
None yet
Development

No branches or pull requests

8 participants