Browse Source

[ruby/sinatra] Remove Agoo (#9732)

Agoo is a less commonly used server and can be somewhat unstable.
Iodine has better results.
Petrik de Heus 5 months ago
parent
commit
889cb526ee

+ 0 - 5
frameworks/Ruby/sinatra/Gemfile

@@ -23,8 +23,3 @@ end
 group :unicorn, optional: true do
 group :unicorn, optional: true do
   gem 'unicorn', '~> 6.1', platforms: [:ruby, :mswin], require: false
   gem 'unicorn', '~> 6.1', platforms: [:ruby, :mswin], require: false
 end
 end
-
-group :agoo, optional: true do
-  gem 'agoo', require: false
-  gem 'rackup'
-end

+ 0 - 5
frameworks/Ruby/sinatra/Gemfile.lock

@@ -20,7 +20,6 @@ GEM
       securerandom (>= 0.3)
       securerandom (>= 0.3)
       tzinfo (~> 2.0, >= 2.0.5)
       tzinfo (~> 2.0, >= 2.0.5)
       uri (>= 0.13.1)
       uri (>= 0.13.1)
-    agoo (2.15.13)
     base64 (0.2.0)
     base64 (0.2.0)
     benchmark (0.4.0)
     benchmark (0.4.0)
     bigdecimal (3.1.9)
     bigdecimal (3.1.9)
@@ -49,8 +48,6 @@ GEM
     rack-session (2.1.0)
     rack-session (2.1.0)
       base64 (>= 0.1.0)
       base64 (>= 0.1.0)
       rack (>= 3.0.0)
       rack (>= 3.0.0)
-    rackup (2.2.1)
-      rack (>= 3)
     raindrops (0.20.1)
     raindrops (0.20.1)
     ruby2_keywords (0.0.5)
     ruby2_keywords (0.0.5)
     securerandom (0.4.1)
     securerandom (0.4.1)
@@ -77,13 +74,11 @@ PLATFORMS
 
 
 DEPENDENCIES
 DEPENDENCIES
   activerecord (~> 8.0)
   activerecord (~> 8.0)
-  agoo
   iodine (~> 0.7)
   iodine (~> 0.7)
   json (~> 2.8)
   json (~> 2.8)
   mysql2 (~> 0.5)
   mysql2 (~> 0.5)
   pg (~> 1.5)
   pg (~> 1.5)
   puma (~> 6.4)
   puma (~> 6.4)
-  rackup
   sinatra (~> 4.0)
   sinatra (~> 4.0)
   unicorn (~> 6.1)
   unicorn (~> 6.1)
 
 

+ 0 - 22
frameworks/Ruby/sinatra/benchmark_config.json

@@ -44,28 +44,6 @@
         "versus": "rack-postgres-puma-mri",
         "versus": "rack-postgres-puma-mri",
         "notes": ""
         "notes": ""
       },
       },
-      "postgres-agoo-mri": {
-        "json_url": "/json",
-        "db_url": "/db",
-        "query_url": "/queries?queries=",
-        "fortune_url": "/fortunes",
-        "update_url": "/updates?queries=",
-        "plaintext_url": "/plaintext",
-        "port": 8080,
-        "approach": "Realistic",
-        "classification": "Micro",
-        "database": "Postgres",
-        "framework": "sinatra",
-        "language": "Ruby",
-        "orm": "Full",
-        "platform": "Rack",
-        "webserver": "Agoo",
-        "os": "Linux",
-        "database_os": "Linux",
-        "display_name": "sinatra-postgres-agoo-mri",
-        "versus": "rack-postgres-agoo-mri",
-        "notes": ""
-      },
       "postgres-iodine-mri": {
       "postgres-iodine-mri": {
         "json_url": "/json",
         "json_url": "/json",
         "db_url": "/db",
         "db_url": "/db",

+ 0 - 20
frameworks/Ruby/sinatra/sinatra-postgres-agoo-mri.dockerfile

@@ -1,20 +0,0 @@
-FROM ruby:3.4
-
-ENV RUBY_YJIT_ENABLE=1
-
-# Use Jemalloc
-RUN apt-get update && \
-    apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=libjemalloc.so.2
-
-ADD ./ /sinatra
-WORKDIR /sinatra
-
-ENV BUNDLE_WITH=postgresql:agoo
-RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
-
-ENV DBTYPE=postgresql
-
-EXPOSE 8080
-
-CMD RACK_ENV=production bundle exec rackup -r agoo -s agoo -p 8080 -q -O workers=$(ruby config/auto_tune.rb | grep -Eo '[0-9]+' | head -n 1)