diff --git a/.gitattributes b/.gitattributes old mode 100755 new mode 100644 diff --git a/.mailmap b/.mailmap old mode 100755 new mode 100644 diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 diff --git a/frameworks/C++/ffead-cpp/benchmark_config.json b/frameworks/C++/ffead-cpp/benchmark_config.json index f8e38bf8b7d..5d25a82c35e 100644 --- a/frameworks/C++/ffead-cpp/benchmark_config.json +++ b/frameworks/C++/ffead-cpp/benchmark_config.json @@ -60,7 +60,7 @@ "display_name": "ffead-cpp-crystal-http", "notes": "", "versus": "", - "tags": [] + "tags": ["broken"] }, "d-hunt": { "json_url": "/te-benchmark-um/json", @@ -98,7 +98,7 @@ "display_name": "ffead-cpp-go-gnet", "notes": "", "versus": "", - "tags": [] + "tags": ["broken"] }, "rust-actix": { "json_url": "/te-benchmark-um/json", @@ -143,6 +143,54 @@ "versus": "", "tags": [] }, + "v-picov-raw-profiled": { + "json_url": "/te-benchmark-um-pq/json", + "plaintext_url": "/plaintext", + "db_url": "/te-benchmark-um-pq/db", + "query_url": "/te-benchmark-um-pq/queries?queries=", + "fortune_url": "/te-benchmark-um-pq/fortunes", + "update_url": "/te-benchmark-um-pq/updates?queries=", + "cached_query_url": "/te-benchmark-um-pq/cached-worlds?count=", + "port": 8080, + "approach": "Realistic", + "classification": "Fullstack", + "database": "postgres", + "framework": "ffead-cpp", + "language": "C++", + "orm": "Raw", + "platform": "None", + "webserver": "picov", + "os": "Linux", + "database_os": "Linux", + "display_name": "ffead-cpp-v-picov-raw-profiled", + "notes": "", + "versus": "", + "tags": [] + }, + "v-picov-raw-clibpqb-profiled": { + "json_url": "/te-benchmark-um-pq/json", + "plaintext_url": "/plaintext", + "db_url": "/te-benchmark-um-pq/db", + "query_url": "/te-benchmark-um-pq/queries?queries=", + "fortune_url": "/te-benchmark-um-pq/fortunes", + "update_url": "/te-benchmark-um-pq/updates?queries=", + "cached_query_url": "/te-benchmark-um-pq/cached-worlds?count=", + "port": 8080, + "approach": "Realistic", + "classification": "Fullstack", + "database": "postgres", + "framework": "ffead-cpp", + "language": "C++", + "orm": "Raw", + "platform": "None", + "webserver": "picov", + "os": "Linux", + "database_os": "Linux", + "display_name": "ffead-cpp-v-picov-raw-clibpqb-profiled", + "notes": "", + "versus": "", + "tags": [] + }, "java-firenio": { "json_url": "/te-benchmark-um/json", "plaintext_url": "/plaintext", @@ -183,7 +231,7 @@ "display_name": "ffead-cpp-postgresql", "notes": "", "versus": "", - "tags": [] + "tags": ["broken"] }, "postgresql-raw": { "json_url": "/te-benchmark-um-pq/json", @@ -323,7 +371,7 @@ "port": 8080, "approach": "Realistic", "classification": "Fullstack", - "database": "mongodb", + "database": "None", "framework": "ffead-cpp", "language": "C++", "orm": "Full", @@ -334,7 +382,26 @@ "display_name": "ffead-cpp-nginx", "notes": "", "versus": "", - "tags": [] + "tags": ["broken"] + }, + "seastar": { + "json_url": "/te-benchmark-um/json", + "plaintext_url": "/plaintext", + "port": 8080, + "approach": "Realistic", + "classification": "Fullstack", + "database": "None", + "framework": "ffead-cpp", + "language": "C++", + "orm": "None", + "platform": "None", + "webserver": "seastar-http", + "os": "Linux", + "database_os": "Linux", + "display_name": "ffead-cpp-seastar", + "notes": "", + "versus": "", + "tags": ["broken"] }, "apache": { "json_url": "/te-benchmark-um/json", @@ -514,7 +581,7 @@ "display_name": "ffead-cpp-go-fasthttp", "notes": "", "versus": "", - "tags": ["broken"] + "tags": [] }, "julia-http": { "json_url": "/te-benchmark-um/json", @@ -670,4 +737,3 @@ } }] } - diff --git a/frameworks/C++/ffead-cpp/config.toml b/frameworks/C++/ffead-cpp/config.toml index 38127091430..4a5fe884b2e 100644 --- a/frameworks/C++/ffead-cpp/config.toml +++ b/frameworks/C++/ffead-cpp/config.toml @@ -1,20 +1,24 @@ [framework] name = "ffead-cpp" -[java-wizzardo-http] +[main] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" +urls.db = "/te-benchmark-um/db" +urls.query = "/te-benchmark-um/queries?queries=" +urls.update = "/te-benchmark-um/updates?queries=" +urls.fortune = "/te-benchmark-um/fortunes" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "mongodb" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Full" platform = "None" -webserver = "wizzardo-http" +webserver = "ffead-cpp" versus = "" -[go-fasthttp] +[libreactor] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -24,25 +28,10 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "fasthttp" -versus = "" - -[postgresql-raw-async-clibpqb-profiled] -urls.db = "/te-benchmark-um-pq-async/db" -urls.query = "/te-benchmark-um-pq-async/queries?queries=" -urls.update = "/te-benchmark-um-pq-async/bupdates?queries=" -urls.fortune = "/te-benchmark-um-pq-async/fortunes" -approach = "Realistic" -classification = "Fullstack" -database = "postgres" -database_os = "Linux" -os = "Linux" -orm = "Raw" -platform = "None" -webserver = "ffead-cpp" +webserver = "libreactor" versus = "" -[java-rapidoid] +[crystal-http] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -52,25 +41,23 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "rapidoid" +webserver = "crystal-http" versus = "" -[postgresql-raw-profiled] -urls.db = "/te-benchmark-um-pq/db" -urls.query = "/te-benchmark-um-pq/queries?queries=" -urls.update = "/te-benchmark-um-pq/updates?queries=" -urls.fortune = "/te-benchmark-um-pq/fortunes" +[d-hunt] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" approach = "Realistic" classification = "Fullstack" -database = "postgres" +database = "None" database_os = "Linux" os = "Linux" -orm = "Raw" +orm = "None" platform = "None" -webserver = "ffead-cpp" +webserver = "hunt" versus = "" -[crystal-h2o] +[go-gnet] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -80,24 +67,20 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "h2o.cr" +webserver = "gnet" versus = "" -[mysql] +[rust-actix] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" -urls.db = "/te-benchmark-um/db" -urls.query = "/te-benchmark-um/queries?queries=" -urls.update = "/te-benchmark-um/updates?queries=" -urls.fortune = "/te-benchmark-um/fortunes" approach = "Realistic" classification = "Fullstack" -database = "mysql" +database = "None" database_os = "Linux" os = "Linux" -orm = "Full" +orm = "None" platform = "None" -webserver = "ffead-cpp" +webserver = "actix" versus = "" [v-picov] @@ -118,33 +101,43 @@ platform = "None" webserver = "picov" versus = "" -[rust-actix] +[v-picov-raw-profiled] urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +urls.json = "/te-benchmark-um-pq/json" +urls.db = "/te-benchmark-um-pq/db" +urls.query = "/te-benchmark-um-pq/queries?queries=" +urls.update = "/te-benchmark-um-pq/updates?queries=" +urls.fortune = "/te-benchmark-um-pq/fortunes" +urls.cached_query = "/te-benchmark-um-pq/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "actix" +webserver = "picov" versus = "" -[cinatra] +[v-picov-raw-clibpqb-profiled] urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +urls.json = "/te-benchmark-um-pq/json" +urls.db = "/te-benchmark-um-pq/db" +urls.query = "/te-benchmark-um-pq/queries?queries=" +urls.update = "/te-benchmark-um-pq/updates?queries=" +urls.fortune = "/te-benchmark-um-pq/fortunes" +urls.cached_query = "/te-benchmark-um-pq/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "cinatra" +webserver = "picov" versus = "" -[d-hunt] +[java-firenio] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -154,59 +147,67 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "hunt" +webserver = "firenio" versus = "" -[rust-hyper] +[postgresql] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" +urls.db = "/te-benchmark-um/db" +urls.query = "/te-benchmark-um/queries?queries=" +urls.update = "/te-benchmark-um/updates?queries=" +urls.fortune = "/te-benchmark-um/fortunes" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Full" platform = "None" -webserver = "hyper" +webserver = "ffead-cpp" versus = "" -[lithium] +[postgresql-raw] urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +urls.json = "/te-benchmark-um-pq/json" +urls.db = "/te-benchmark-um-pq/db" +urls.query = "/te-benchmark-um-pq/queries?queries=" +urls.update = "/te-benchmark-um-pq/updates?queries=" +urls.fortune = "/te-benchmark-um-pq/fortunes" +urls.cached_query = "/te-benchmark-um-pq/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "lithium" +webserver = "ffead-cpp" versus = "" -[drogon] -urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +[postgresql-raw-profiled] +urls.db = "/te-benchmark-um-pq/db" +urls.query = "/te-benchmark-um-pq/queries?queries=" +urls.update = "/te-benchmark-um-pq/updates?queries=" +urls.fortune = "/te-benchmark-um-pq/fortunes" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "drogon" +webserver = "ffead-cpp" versus = "" -[mongo-raw] -urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um-mgr/json" -urls.db = "/te-benchmark-um-mgr/db" -urls.query = "/te-benchmark-um-mgr/queries?queries=" -urls.update = "/te-benchmark-um-mgr/updates?queries=" -urls.fortune = "/te-benchmark-um-mgr/fortunes" -urls.cached_query = "/te-benchmark-um-mgr/cached-worlds?count=" +[postgresql-raw-clibpqb-profiled] +urls.db = "/te-benchmark-um-pq/db" +urls.query = "/te-benchmark-um-pq/queries?queries=" +urls.update = "/te-benchmark-um-pq/updates?queries=" +urls.fortune = "/te-benchmark-um-pq/fortunes" approach = "Realistic" classification = "Fullstack" -database = "mongodb" +database = "postgres" database_os = "Linux" os = "Linux" orm = "Raw" @@ -214,40 +215,44 @@ platform = "None" webserver = "ffead-cpp" versus = "" -[rust-thruster] +[postgresql-raw-async] urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +urls.json = "/te-benchmark-um-pq-async/json" +urls.db = "/te-benchmark-um-pq-async/db" +urls.query = "/te-benchmark-um-pq-async/queries?queries=" +urls.update = "/te-benchmark-um-pq-async/bupdates?queries=" +urls.fortune = "/te-benchmark-um-pq-async/fortunes" +urls.cached_query = "/te-benchmark-um-pq-async/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "thruster" +webserver = "ffead-cpp" versus = "" -[go-gnet] -urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um/json" +[postgresql-raw-async-profiled] +urls.db = "/te-benchmark-um-pq-async/db" +urls.query = "/te-benchmark-um-pq-async/queries?queries=" +urls.update = "/te-benchmark-um-pq-async/bupdates?queries=" +urls.fortune = "/te-benchmark-um-pq-async/fortunes" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "postgres" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Raw" platform = "None" -webserver = "gnet" +webserver = "ffead-cpp" versus = "" -[postgresql-raw-async] -urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um-pq-async/json" +[postgresql-raw-async-clibpqb-profiled] urls.db = "/te-benchmark-um-pq-async/db" urls.query = "/te-benchmark-um-pq-async/queries?queries=" urls.update = "/te-benchmark-um-pq-async/bupdates?queries=" urls.fortune = "/te-benchmark-um-pq-async/fortunes" -urls.cached_query = "/te-benchmark-um-pq-async/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" database = "postgres" @@ -258,20 +263,20 @@ platform = "None" webserver = "ffead-cpp" versus = "" -[rust-rocket] +[nginx] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" classification = "Fullstack" -database = "None" +database = "mongodb" database_os = "Linux" os = "Linux" -orm = "None" +orm = "Full" platform = "None" -webserver = "rocket" +webserver = "nginx" versus = "" -[nginx] +[seastar] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -281,7 +286,7 @@ database_os = "Linux" os = "Linux" orm = "Full" platform = "None" -webserver = "nginx" +webserver = "seastar-http" versus = "" [apache] @@ -297,14 +302,17 @@ platform = "None" webserver = "apache" versus = "" -[postgresql-raw-async-profiled] -urls.db = "/te-benchmark-um-pq-async/db" -urls.query = "/te-benchmark-um-pq-async/queries?queries=" -urls.update = "/te-benchmark-um-pq-async/bupdates?queries=" -urls.fortune = "/te-benchmark-um-pq-async/fortunes" +[mongo-raw] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um-mgr/json" +urls.db = "/te-benchmark-um-mgr/db" +urls.query = "/te-benchmark-um-mgr/queries?queries=" +urls.update = "/te-benchmark-um-mgr/updates?queries=" +urls.fortune = "/te-benchmark-um-mgr/fortunes" +urls.cached_query = "/te-benchmark-um-mgr/cached-worlds?count=" approach = "Realistic" classification = "Fullstack" -database = "postgres" +database = "mongodb" database_os = "Linux" os = "Linux" orm = "Raw" @@ -312,7 +320,7 @@ platform = "None" webserver = "ffead-cpp" versus = "" -[v-vweb] +[lithium] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -322,45 +330,36 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "vweb" +webserver = "lithium" versus = "" -[postgresql] +[cinatra] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" -urls.db = "/te-benchmark-um/db" -urls.query = "/te-benchmark-um/queries?queries=" -urls.update = "/te-benchmark-um/updates?queries=" -urls.fortune = "/te-benchmark-um/fortunes" approach = "Realistic" classification = "Fullstack" -database = "postgres" +database = "None" database_os = "Linux" os = "Linux" -orm = "Full" +orm = "None" platform = "None" -webserver = "ffead-cpp" +webserver = "cinatra" versus = "" -[postgresql-raw] +[drogon] urls.plaintext = "/plaintext" -urls.json = "/te-benchmark-um-pq/json" -urls.db = "/te-benchmark-um-pq/db" -urls.query = "/te-benchmark-um-pq/queries?queries=" -urls.update = "/te-benchmark-um-pq/updates?queries=" -urls.fortune = "/te-benchmark-um-pq/fortunes" -urls.cached_query = "/te-benchmark-um-pq/cached-worlds?count=" +urls.json = "/te-benchmark-um/json" approach = "Realistic" classification = "Fullstack" -database = "postgres" +database = "None" database_os = "Linux" os = "Linux" -orm = "Raw" +orm = "None" platform = "None" -webserver = "ffead-cpp" +webserver = "drogon" versus = "" -[swift-nio] +[h2o] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -370,10 +369,23 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "swift-nio" +webserver = "h2o" versus = "" -[main] +[crystal-h2o] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" +approach = "Realistic" +classification = "Fullstack" +database = "None" +database_os = "Linux" +os = "Linux" +orm = "None" +platform = "None" +webserver = "h2o.cr" +versus = "" + +[mysql] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" urls.db = "/te-benchmark-um/db" @@ -382,7 +394,7 @@ urls.update = "/te-benchmark-um/updates?queries=" urls.fortune = "/te-benchmark-um/fortunes" approach = "Realistic" classification = "Fullstack" -database = "mongodb" +database = "mysql" database_os = "Linux" os = "Linux" orm = "Full" @@ -390,7 +402,7 @@ platform = "None" webserver = "ffead-cpp" versus = "" -[java-firenio] +[go-fasthttp] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -400,10 +412,10 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "firenio" +webserver = "fasthttp" versus = "" -[libreactor] +[julia-http] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -413,25 +425,23 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "libreactor" +webserver = "julia-http" versus = "" -[postgresql-raw-clibpqb-profiled] -urls.db = "/te-benchmark-um-pq/db" -urls.query = "/te-benchmark-um-pq/queries?queries=" -urls.update = "/te-benchmark-um-pq/updates?queries=" -urls.fortune = "/te-benchmark-um-pq/fortunes" +[swift-nio] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" approach = "Realistic" classification = "Fullstack" -database = "postgres" +database = "None" database_os = "Linux" os = "Linux" -orm = "Raw" +orm = "None" platform = "None" -webserver = "ffead-cpp" +webserver = "swift-nio" versus = "" -[h2o] +[rust-hyper] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -441,10 +451,10 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "h2o" +webserver = "hyper" versus = "" -[crystal-http] +[rust-thruster] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -454,10 +464,10 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "crystal-http" +webserver = "thruster" versus = "" -[julia-http] +[rust-rocket] urls.plaintext = "/plaintext" urls.json = "/te-benchmark-um/json" approach = "Realistic" @@ -467,5 +477,44 @@ database_os = "Linux" os = "Linux" orm = "None" platform = "None" -webserver = "julia-http" +webserver = "rocket" +versus = "" + +[v-vweb] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" +approach = "Realistic" +classification = "Fullstack" +database = "None" +database_os = "Linux" +os = "Linux" +orm = "None" +platform = "None" +webserver = "vweb" +versus = "" + +[java-rapidoid] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" +approach = "Realistic" +classification = "Fullstack" +database = "None" +database_os = "Linux" +os = "Linux" +orm = "None" +platform = "None" +webserver = "rapidoid" versus = "" + +[java-wizzardo-http] +urls.plaintext = "/plaintext" +urls.json = "/te-benchmark-um/json" +approach = "Realistic" +classification = "Fullstack" +database = "None" +database_os = "Linux" +os = "Linux" +orm = "None" +platform = "None" +webserver = "wizzardo-http" +versus = "" \ No newline at end of file diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-apache.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-apache.dockerfile index 8930ddcc376..ab328ddba81 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-apache.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-apache.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 apache mongo +CMD ./run_ffead.sh ffead-cpp-6.0 apache mongo diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-base-debug.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-base-debug.dockerfile index 2831c48fe71..45241104534 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-base-debug.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-base-debug.dockerfile @@ -1,6 +1,6 @@ FROM ubuntu:20.04 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2-debug" +LABEL version="6.0-debug" LABEL description="Base ffead-cpp docker image with commit id - master" ENV IROOT=/installs @@ -13,7 +13,7 @@ RUN mkdir /installs COPY te-benchmark-um/ /installs/te-benchmark-um/ COPY te-benchmark-um-pq/ /installs/te-benchmark-um-pq/ COPY te-benchmark-um-mgr/ /installs/te-benchmark-um-mgr/ -COPY te-benchmark-um-pq-async /installs/te-benchmark-um-pq-async/ +COPY te-benchmark-um-mgr/ /installs/te-benchmark-um-pq-async/ WORKDIR ${IROOT} diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-base.dockerfile index a3426ec1033..891dd506848 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-base.dockerfile @@ -1,6 +1,6 @@ -FROM ubuntu:20.04 +FROM sumeetchhetri/ffead-cpp-deps:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="Base ffead-cpp docker image with commit id - master" ENV IROOT=/installs @@ -9,22 +9,13 @@ ENV DEBUG=off ENV DEBIAN_FRONTEND noninteractive RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections -RUN mkdir /installs COPY te-benchmark-um/ /installs/te-benchmark-um/ COPY te-benchmark-um-pq/ /installs/te-benchmark-um-pq/ COPY te-benchmark-um-mgr/ /installs/te-benchmark-um-mgr/ -COPY te-benchmark-um-pq-async /installs/te-benchmark-um-pq-async/ +COPY te-benchmark-um-pq-async/ /installs/te-benchmark-um-pq-async/ WORKDIR ${IROOT} -COPY install_ffead-cpp-dependencies.sh ${IROOT}/ -RUN chmod 755 ${IROOT}/install_ffead-cpp-dependencies.sh -RUN ./install_ffead-cpp-dependencies.sh - -COPY install_ffead-cpp-backends.sh ${IROOT}/ -RUN chmod 755 ${IROOT}/install_ffead-cpp-backends.sh -RUN ./install_ffead-cpp-backends.sh - COPY install_ffead-cpp-framework.sh install_ffead-cpp-httpd.sh install_ffead-cpp-nginx.sh server.sh ${IROOT}/ RUN chmod 755 ${IROOT}/*.sh RUN ./install_ffead-cpp-framework.sh && ./install_ffead-cpp-httpd.sh && ./install_ffead-cpp-nginx.sh && cd ${IROOT}/ffead-cpp-src && make clean && rm -rf CMakeFiles diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-cinatra.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-cinatra.dockerfile index 2174493c28c..ccd26faecf8 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-cinatra.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-cinatra.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 cinatra +CMD ./run_ffead.sh ffead-cpp-6.0 cinatra diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-crystal-h2o.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-crystal-h2o.dockerfile index 1acff4df3cd..026abac8c85 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-crystal-h2o.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-crystal-h2o.dockerfile @@ -1,13 +1,13 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN apt-get update -y && apt-get install -yqq libh2o-evloop-dev libwslay-dev libyaml-0-2 libevent-dev libpcre3-dev \ @@ -21,6 +21,4 @@ RUN shards install && gcc -shared -O3 lib/h2o/src/ext/h2o.c -I/usr/include -fPIC WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 crystal-h2o +CMD ./run_ffead.sh ffead-cpp-6.0 crystal-h2o diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-crystal-http.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-crystal-http.dockerfile index 02185d200e4..252c43a8955 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-crystal-http.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-crystal-http.dockerfile @@ -1,13 +1,13 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN apt-get update -y && apt install -y --no-install-recommends gnupg && curl -sL "https://keybase.io/crystal/pgp_keys.asc" | apt-key add - \ @@ -18,6 +18,4 @@ RUN crystal build --release --no-debug crystal-ffead-cpp.cr -o crystal-ffead-cpp WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 crystal-http +CMD ./run_ffead.sh ffead-cpp-6.0 crystal-http diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-d-hunt.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-d-hunt.dockerfile index 5426e2ca92c..d3e636adb70 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-d-hunt.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-d-hunt.dockerfile @@ -1,14 +1,14 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs ENV DEBIAN_FRONTEND noninteractive RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig ENV LDC_VERSION 1.24.0 @@ -36,6 +36,4 @@ RUN dub upgrade --verbose && dub build --build=release --arch=x86_64 --compiler= WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 d-hunt +CMD ./run_ffead.sh ffead-cpp-6.0 d-hunt diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-deps.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-deps.dockerfile new file mode 100644 index 00000000000..9154224ae5d --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-deps.dockerfile @@ -0,0 +1,22 @@ +FROM ubuntu:20.04 +LABEL maintainer="Sumeet Chhetri" +LABEL version="6.0" +LABEL description="ffead-cpp docker image with backend dependencies" + +ENV IROOT=/installs +ENV DEBUG=off + +ENV DEBIAN_FRONTEND noninteractive +RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + +RUN mkdir /installs + +WORKDIR ${IROOT} + +COPY install_ffead-cpp-dependencies.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/install_ffead-cpp-dependencies.sh +RUN ./install_ffead-cpp-dependencies.sh + +COPY install_ffead-cpp-backends.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/install_ffead-cpp-backends.sh +RUN ./install_ffead-cpp-backends.sh diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-drogon.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-drogon.dockerfile index 4e41526a1f6..06c6b9077b9 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-drogon.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-drogon.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 drogon +CMD ./run_ffead.sh ffead-cpp-6.0 drogon diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-go-fasthttp.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-go-fasthttp.dockerfile index 569e51a2e65..fd562fb9dd7 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-go-fasthttp.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-go-fasthttp.dockerfile @@ -1,13 +1,13 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN wget -q https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.14.4.linux-amd64.tar.gz @@ -17,6 +17,4 @@ RUN make && cp fasthttp-ffead-cpp $IROOT/ && rm -rf ${IROOT}/lang-server-backend WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 go-fasthttp +CMD ./run_ffead.sh ffead-cpp-6.0 go-fasthttp diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-go-gnet.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-go-gnet.dockerfile index da3155912cb..fec2e69eeff 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-go-gnet.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-go-gnet.dockerfile @@ -1,13 +1,13 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN wget -q https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.14.4.linux-amd64.tar.gz @@ -17,6 +17,4 @@ RUN make && cp gnet-ffead-cpp $IROOT/ && rm -rf ${IROOT}/lang-server-backends WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 go-gnet +CMD ./run_ffead.sh ffead-cpp-6.0 go-gnet diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-h2o.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-h2o.dockerfile index a82f1c6e4a4..c0691624b0b 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-h2o.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-h2o.dockerfile @@ -1,14 +1,14 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs ENV DEBIAN_FRONTEND noninteractive RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig WORKDIR ${IROOT} @@ -37,6 +37,4 @@ RUN chmod +x h2o.sh WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 h2o +CMD ./run_ffead.sh ffead-cpp-6.0 h2o diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-java-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-java-base.dockerfile index d1b51688a05..7e2c60a285b 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-java-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-java-base.dockerfile @@ -1,16 +1,16 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="Base java docker image with master code" ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN apt update -yqq && apt install -y --no-install-recommends default-jre maven gradle && rm -rf /var/lib/apt/lists/* diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-java-firenio.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-java-firenio.dockerfile index 38c6b29fc69..f48f9cf06e1 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-java-firenio.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-java-firenio.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-java-base:5.2 +FROM sumeetchhetri/ffead-cpp-java-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 java-firenio +CMD ./run_ffead.sh ffead-cpp-6.0 java-firenio diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-java-rapidoid.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-java-rapidoid.dockerfile index 8a7fc0cc795..5d139a094da 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-java-rapidoid.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-java-rapidoid.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-java-base:5.2 +FROM sumeetchhetri/ffead-cpp-java-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 java-rapidoid +CMD ./run_ffead.sh ffead-cpp-6.0 java-rapidoid diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-java-wizzardo-http.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-java-wizzardo-http.dockerfile index 9526e30a052..b163375f97b 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-java-wizzardo-http.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-java-wizzardo-http.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-java-base:5.2 +FROM sumeetchhetri/ffead-cpp-java-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 java-wizzardo-http +CMD ./run_ffead.sh ffead-cpp-6.0 java-wizzardo-http diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-julia-http.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-julia-http.dockerfile index 76e533af033..a322fe557ea 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-julia-http.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-julia-http.dockerfile @@ -1,14 +1,14 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs ENV DEBIAN_FRONTEND noninteractive RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig WORKDIR ${IROOT} @@ -25,7 +25,4 @@ RUN julia -e 'import Pkg; Pkg.update()' && \ WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 julia-http - +CMD ./run_ffead.sh ffead-cpp-6.0 julia-http diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-libreactor.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-libreactor.dockerfile index 8202ce710b9..0d019709db8 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-libreactor.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-libreactor.dockerfile @@ -1,13 +1,13 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig WORKDIR ${IROOT} @@ -24,6 +24,4 @@ RUN make && cp libreactor-ffead-cpp $IROOT/ && rm -rf ${IROOT}/lang-server-backe WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 libreactor +CMD ./run_ffead.sh ffead-cpp-6.0 libreactor diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-lithium.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-lithium.dockerfile index e77b96bf319..851568e722a 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-lithium.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-lithium.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 lithium +CMD ./run_ffead.sh ffead-cpp-6.0 lithium diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-mongo-raw.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-mongo-raw.dockerfile index a6234af4828..40f54d36d0c 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-mongo-raw.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-mongo-raw.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 emb mongo-raw memory +CMD ./run_ffead.sh ffead-cpp-6.0 emb mongo-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-mysql.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-mysql.dockerfile index 72c9b7d40fa..06894663fdb 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-mysql.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-mysql.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb mysql +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb mysql diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-nginx.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-nginx.dockerfile index 66293e7f205..538cdc3a7d7 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-nginx.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-nginx.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 nginx mongo +CMD ./run_ffead.sh ffead-cpp-6.0 nginx mongo diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-clibpqb-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-clibpqb-profiled.dockerfile index 79f8d17bca0..854ea8df9b7 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-clibpqb-profiled.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-clibpqb-profiled.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-sql-raw-async-clibpqb-profiled-base:5.2 +FROM sumeetchhetri/ffead-cpp-sql-raw-async-clibpqb-profiled-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw-async memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw-async memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-profiled.dockerfile index 4e5c2777e8d..121a6bd8c3e 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-profiled.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async-profiled.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-sql-raw-async-profiled-base:5.2 +FROM sumeetchhetri/ffead-cpp-sql-raw-async-profiled-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw-async memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw-async memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async.dockerfile index 0d3462c7fa1..6c7698853ed 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-async.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw-async memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw-async memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-clibpqb-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-clibpqb-profiled.dockerfile index 54259d38dea..8dd6c8db697 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-clibpqb-profiled.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-clibpqb-profiled.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-sql-raw-clibpqb-profiled-base:5.2 +FROM sumeetchhetri/ffead-cpp-sql-raw-clibpqb-profiled-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-profiled.dockerfile index 7d8e480eb90..477dce0c9e7 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-profiled.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw-profiled.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-sql-raw-profiled-base:5.2 +FROM sumeetchhetri/ffead-cpp-sql-raw-profiled-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw.dockerfile index f6291639a1f..80116b803cd 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql-raw.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql-raw memory +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql.dockerfile index ea0a303d38f..408d924d160 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-postgresql.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-postgresql.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0-sql emb postgresql redis +CMD ./run_ffead.sh ffead-cpp-6.0-sql emb postgresql redis diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-actix.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-actix.dockerfile index a4ca8faf77c..dd166fa5476 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-actix.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-actix.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-rust-base:5.2 +FROM sumeetchhetri/ffead-cpp-rust-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 rust-actix +CMD ./run_ffead.sh ffead-cpp-6.0 rust-actix diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-base.dockerfile index 60aa5694559..636a82bf224 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-base.dockerfile @@ -1,16 +1,16 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="Base rust docker image with ffead-cpp v4.0 - commit id - master" ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-hyper.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-hyper.dockerfile index af4821850ec..b7d777f909a 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-hyper.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-hyper.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-rust-base:5.2 +FROM sumeetchhetri/ffead-cpp-rust-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 rust-hyper +CMD ./run_ffead.sh ffead-cpp-6.0 rust-hyper diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket-base.dockerfile index f677b059c3a..cf4b0edba8d 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket-base.dockerfile @@ -1,16 +1,16 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" -LABEL description="Base rust rocket docker image with ffead-cpp v5.0 - commit id - master" +LABEL version="6.0" +LABEL description="Base rust rocket docker image with ffead-cpp v6.0 - commit id - master" ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket.dockerfile index d5973abef77..a8afa36bd3c 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-rocket.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-rust-rocket-base:5.2 +FROM sumeetchhetri/ffead-cpp-rust-rocket-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 rust-rocket +CMD ./run_ffead.sh ffead-cpp-6.0 rust-rocket diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-rust-thruster.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-rust-thruster.dockerfile index 9fba366a759..5c12723cb60 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-rust-thruster.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-rust-thruster.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-rust-base:latest +FROM sumeetchhetri/ffead-cpp-rust-base:latest ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 rust-thruster +CMD ./run_ffead.sh ffead-cpp-6.0 rust-thruster diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-seastar-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-seastar-base.dockerfile new file mode 100644 index 00000000000..96d27508ff0 --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-seastar-base.dockerfile @@ -0,0 +1,59 @@ +FROM sumeetchhetri/ffead-cpp-base:6.0 + +#seastar needs ubuntu 20 and boost >= 1.66 +WORKDIR ${IROOT} + +ENV DEBIAN_FRONTEND noninteractive + +RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um-pq.so /usr/local/lib/libte-benchmark-um-pq.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um-mgr.so /usr/local/lib/libte-benchmark-um-mgr.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um-pq-async.so /usr/local/lib/libte-benchmark-um-pq-async.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ldconfig + +ENV FFEAD_CPP_PATH=${IROOT}/ffead-cpp-6.0 +ENV LD_LIBRARY_PATH=${IROOT}/:${IROOT}/lib:${FFEAD_CPP_PATH}/lib:/usr/local/lib:$LD_LIBRARY_PATH + +#seastar need hwloc 2 +RUN cd /tmp && wget -q https://github.com/open-mpi/hwloc/releases/download/hwloc-2.1.0/hwloc-2.1.0.tar.gz && \ + tar xvf hwloc-2.1.0.tar.gz && cd hwloc-2.1.0 && ./configure --prefix=/usr/local/ && make install +RUN rm -rf /tmp/hwloc-2.1.0 + +RUN apt update -y && apt install -y pkg-config liblzma-dev libunistring-dev libudev-dev bridge-utils \ + net-tools iproute2 kmod sudo qemu-kvm libvirt-clients libvirt-daemon-system + +RUN sudo adduser $(whoami) libvirt +RUN sudo adduser $(whoami) kvm +RUN sudo adduser $(whoami) libvirt-qemu +RUN sudo adduser $(whoami) libvirt-dnsmasq +#RUN sudo chown $(whoami) /dev/kvm +#RUN sudo chmod 777 /dev/kvm + +#seastar needs gcc-10 +RUN git clone https://github.com/sumeetchhetri/seastar && cd seastar && git checkout for_ffead +RUN cd seastar && chmod +x *.sh && apt update -y && ./install-dependencies.sh && apt remove -y libfmt-dev && \ + ./configure.py --mode=release --cook fmt && ./configure.py --mode=release --prefix=/usr/local +RUN cd seastar && ninja -C build/release install && cp build/release/_cooking/installed/lib/libfmt.a /usr/local/lib/ && \ + cp -rf build/release/_cooking/installed/include/fmt /usr/local/include/ && cp apps/lib/stop_signal.hh /${IROOT}/lang-server-backends/c++/seastar && \ + cd ${IROOT} && rm -rf ${IROOT}/seastar && mkdir -p ${IROOT}/seastar/build/release/_cooking/installed/lib/ && \ + cp /usr/local/lib/libfmt.a ${IROOT}/seastar/build/release/_cooking/installed/lib/ + +WORKDIR ${IROOT}/lang-server-backends/c++/seastar + +#RUN g++ -g SeastarFfeadCpp.cpp -I/home/mavuser/ffead-cpp-6.0/include/ -I/usr/include/libmongoc-1.0 \ +# -I/usr/include/libbson-1.0 -I. -I/usr/local/include $(pkg-config --libs --cflags --static seastar) -lffead-framework \ +# -lffead-modules -o ffead-cpp-seastar + +RUN g++ SeastarFfeadCpp.cpp -O3 -I. $(pkg-config --libs --cflags --static seastar) -lffead-framework -o ffead-cpp-seastar + +RUN chmod +x run.sh + +WORKDIR / + +CMD ./run_ffead.sh ffead-cpp-6.0 seastar + diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-seastar.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-seastar.dockerfile new file mode 100644 index 00000000000..7b60874ce4f --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-seastar.dockerfile @@ -0,0 +1,5 @@ +FROM sumeetchhetri/ffead-cpp-seastar:6.0 + +WORKDIR / + +CMD ./run_ffead.sh ffead-cpp-6.0 seastar diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-clibpqb-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-clibpqb-profiled-base.dockerfile index 5ee60e1863e..589f89e57da 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-clibpqb-profiled-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-clibpqb-profiled-base.dockerfile @@ -1,6 +1,6 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="SQL Raw Custom libpq batch patched Base ffead-cpp docker image with commit id - master" WORKDIR /tmp @@ -79,7 +79,15 @@ ENV accept accept WORKDIR ${IROOT} +COPY sql-profiled-util.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-profiled-util.sh +RUN ./sql-profiled-util.sh batch clang async + +#COPY TeBkUmLpqAsync.cpp ${IROOT}/ffead-cpp-src/web/te-benchmark-um-pq-async/src/ +#COPY TeBkUmLpqAsync.h ${IROOT}/ffead-cpp-src/web/te-benchmark-um-pq-async/include/ +#COPY LibpqDataSourceImpl.cpp ${IROOT}/ffead-cpp-src/src/modules/sdorm/sql/libpq/ +#COPY LibpqDataSourceImpl.h ${IROOT}/ffead-cpp-src/src/modules/sdorm/sql/libpq/ + COPY sql-async-profiled-install-clang.sh install_ffead-cpp-sql-raw-profiled.sh ${IROOT}/ RUN chmod 755 ${IROOT}/sql-async-profiled-install-clang.sh ${IROOT}/install_ffead-cpp-sql-raw-profiled.sh - RUN ./sql-async-profiled-install-clang.sh batch diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-profiled-base.dockerfile index f6d19fe7429..ac0b19e9cf7 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-profiled-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-async-profiled-base.dockerfile @@ -1,6 +1,6 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="SQL Raw Base ffead-cpp docker image with commit id - master" WORKDIR /tmp @@ -79,7 +79,10 @@ ENV accept accept WORKDIR ${IROOT} +COPY sql-profiled-util.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-profiled-util.sh +RUN ./sql-profiled-util.sh nobatch noclang async + COPY sql-async-profiled-install.sh install_ffead-cpp-sql-raw-profiled.sh ${IROOT}/ RUN chmod 755 ${IROOT}/sql-async-profiled-install.sh ${IROOT}/install_ffead-cpp-sql-raw-profiled.sh - RUN ./sql-async-profiled-install.sh diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-clibpqb-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-clibpqb-profiled-base.dockerfile index 692eb1cb91e..8e016159afb 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-clibpqb-profiled-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-clibpqb-profiled-base.dockerfile @@ -1,6 +1,6 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="SQL Raw Custom libpq batch patched Base ffead-cpp docker image with commit id - master" WORKDIR /tmp @@ -79,7 +79,10 @@ ENV accept accept WORKDIR ${IROOT} +COPY sql-profiled-util.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-profiled-util.sh +RUN ./sql-profiled-util.sh batch clang noasync + COPY sql-profiled-install-clang.sh install_ffead-cpp-sql-raw-profiled.sh ${IROOT}/ RUN chmod 755 ${IROOT}/sql-profiled-install-clang.sh ${IROOT}/install_ffead-cpp-sql-raw-profiled.sh - RUN ./sql-profiled-install-clang.sh batch diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-profiled-base.dockerfile index c450cdd74ff..384f1defd39 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-profiled-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-sql-raw-profiled-base.dockerfile @@ -1,6 +1,6 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="SQL Raw Base ffead-cpp docker image with commit id - master" WORKDIR /tmp @@ -79,7 +79,10 @@ ENV accept accept WORKDIR ${IROOT} +COPY sql-profiled-util.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-profiled-util.sh +RUN ./sql-profiled-util.sh nobatch noclang noasync + COPY sql-profiled-install.sh install_ffead-cpp-sql-raw-profiled.sh ${IROOT}/ RUN chmod 755 ${IROOT}/sql-profiled-install.sh ${IROOT}/install_ffead-cpp-sql-raw-profiled.sh - RUN ./sql-profiled-install.sh diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-swift-nio.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-swift-nio.dockerfile index 3a1da3ab644..a7fd097a8fd 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-swift-nio.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-swift-nio.dockerfile @@ -1,24 +1,24 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs ENV DEBIAN_FRONTEND noninteractive RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig WORKDIR ${IROOT} RUN apt-get update -y && apt-get install -y --no-install-recommends clang libicu-dev libpython2.7-dev libtinfo5 libncurses5 libz3-dev \ && rm -rf /var/lib/apt/lists/* - -RUN wget -q https://swift.org/builds/swift-5.3-release/ubuntu2004/swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu20.04.tar.gz -RUN tar -xzf swift-5.3-RELEASE-ubuntu20.04.tar.gz -RUN mv swift-5.3-RELEASE-ubuntu20.04 /opt/ && rm -f swift-5.3-RELEASE-ubuntu20.04.tar.gz -RUN ln -s /opt/swift-5.3-RELEASE-ubuntu20.04 /opt/swift + +RUN wget -q https://swift.org/builds/swift-6.0-release/ubuntu2004/swift-6.0-RELEASE/swift-6.0-RELEASE-ubuntu20.04.tar.gz +RUN tar -xzf swift-6.0-RELEASE-ubuntu20.04.tar.gz +RUN mv swift-6.0-RELEASE-ubuntu20.04 /opt/ && rm -f swift-6.0-RELEASE-ubuntu20.04.tar.gz +RUN ln -s /opt/swift-6.0-RELEASE-ubuntu20.04 /opt/swift ENV PATH=/opt/swift/usr/bin:${PATH} @@ -28,6 +28,4 @@ RUN swift build --enable-test-discovery -c release -Xlinker "-L/usr/local/lib" - WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 swift-nio +CMD ./run_ffead.sh ffead-cpp-6.0 swift-nio diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-base.dockerfile index 2b75705aee6..038e307a52f 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-v-base.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-base.dockerfile @@ -1,20 +1,24 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 LABEL maintainer="Sumeet Chhetri" -LABEL version="5.2" +LABEL version="6.0" LABEL description="Base v docker image with ffead-cpp v4.0 commit id - master" ENV IROOT=/installs RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libinter.so /usr/local/lib/libinter.so && \ - ln -s ${IROOT}/ffead-cpp-5.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0/lib/libdinter.so /usr/local/lib/libdinter.so && \ ldconfig RUN apt update -yqq && apt install -y git make && rm -rf /var/lib/apt/lists/* -RUN git clone https://github.com/vlang/v && cd v && make && ./v symlink +#For Latest vlang, uncomment the below mentioned line, due to lot of new enhancements and unsafe block handling, vlnag has slowed down tremendously +#RUN git clone https://github.com/vlang/v && cd v && make && ./v symlink + +#For the fastest vlang performance, use 0.1.29, where the unsafe changes were only restricted to pointer arithmetic +RUN wget -q https://github.com/vlang/v/releases/download/0.1.29/v_linux.zip && unzip -q v_linux.zip && cd v && chmod +x v && ./v symlink && cd .. && rm -f v_linux.zip WORKDIR ${IROOT}/lang-server-backends/v/vweb #COPY vweb.v ${IROOT}/lang-server-backends/v/vweb/ diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled-base.dockerfile new file mode 100644 index 00000000000..0c78eed712a --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled-base.dockerfile @@ -0,0 +1,98 @@ +FROM sumeetchhetri/ffead-cpp-sql-raw-clibpqb-profiled-base:6.0 +LABEL maintainer="Sumeet Chhetri" +LABEL version="6.0" +LABEL description="SQL Raw Custom libpq batch patched Base ffead-cpp-v-picov-profiled docker image with commit id - master" + +RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ldconfig + +RUN apt update -yqq && apt install -y git make && rm -rf /var/lib/apt/lists/* +#For Latest vlang, uncomment the below mentioned line, due to lot of new enhancements and unsafe block handling, vlnag has slowed down tremendously +#RUN git clone https://github.com/vlang/v && cd v && make && ./v symlink + +#For the fastest vlang performance, use 0.1.29, where the unsafe changes were only restricted to pointer arithmetic +RUN wget -q https://github.com/vlang/v/releases/download/0.1.29/v_linux.zip && unzip -q v_linux.zip && cd v && chmod +x v && ./v symlink && cd .. && rm -f v_linux.zip + +WORKDIR /tmp +RUN mkdir postgresql + +COPY postgresql/* /tmp/postgresql/ + +#POSTGRESQL +WORKDIR /tmp/postgresql/ + +# prepare PostgreSQL APT repository +RUN apt-get -yqq update && apt-get -yqq install locales gnupg lsb-release + +RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - +RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list + +ENV PG_VERSION 13 +RUN locale-gen en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 +ENV DEBIAN_FRONTEND noninteractive + +# install postgresql on database machine +RUN apt-get -yqq update && apt-get -yqq install postgresql-13 postgresql-contrib-13 && rm -rf /var/lib/apt/lists/* + +# Make sure all the configuration files in main belong to postgres +RUN mv postgresql.conf /etc/postgresql/${PG_VERSION}/main/postgresql.conf +RUN mv pg_hba.conf /etc/postgresql/${PG_VERSION}/main/pg_hba.conf + +RUN chown -Rf postgres:postgres /etc/postgresql/${PG_VERSION}/main + +RUN cp -R -p /var/lib/postgresql/${PG_VERSION}/main /ssd/postgresql +RUN cp /etc/postgresql/${PG_VERSION}/main/postgresql.conf /ssd/postgresql +RUN mv 60-postgresql-shm.conf /etc/sysctl.d/60-postgresql-shm.conf + +RUN chown -Rf postgres:postgres /var/run/postgresql +RUN chmod 2777 /var/run/postgresql +RUN chown postgres:postgres /etc/sysctl.d/60-postgresql-shm.conf +RUN chown postgres:postgres create-postgres* +RUN chown -Rf postgres:postgres /ssd + +ENV PGDATA=/ssd/postgresql + +USER postgres + +# We have to wait for postgres to start before we can use the cli +RUN service postgresql start && \ + until psql -c "\q"; do sleep 1; done && \ + psql < create-postgres-database.sql && \ + psql -a hello_world < create-postgres.sql && \ + service postgresql stop +#POSTGRESQL + +USER root + +#WRK +WORKDIR /tmp/wrk +RUN apt-get -yqq update && apt-get -yqq install libluajit-5.1-dev libssl-dev luajit && rm -rf /var/lib/apt/lists/* && \ + curl -sL https://github.com/wg/wrk/archive/4.1.0.tar.gz | tar xz --strip-components=1 +ENV LDFLAGS="-O3 -march=native -flto" +ENV CFLAGS="-I /usr/include/luajit-2.1 $LDFLAGS" +RUN make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -j "$(nproc)" +RUN cp wrk /usr/local/bin + +ENV name name +ENV server_host server_host +ENV levels levels +ENV duration duration +ENV max_concurrency max_concurrency +ENV max_threads max_threads +ENV pipeline pipeline +ENV accept accept +#WRK + +WORKDIR ${IROOT} + +COPY sql-v-picov-profiled-install.sh install_ffead-cpp-sql-raw-v-picov-profiled.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-v-picov-profiled-install.sh ${IROOT}/install_ffead-cpp-sql-raw-v-picov-profiled.sh +RUN ./sql-v-picov-profiled-install.sh diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled.dockerfile new file mode 100644 index 00000000000..85e0ccd3ad4 --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-clibpqb-profiled.dockerfile @@ -0,0 +1,7 @@ +FROM sumeetchhetri/ffead-cpp-v-picov-raw-clibpqb-profiled-base:6.0 + +ENV IROOT=/installs + +WORKDIR / + +CMD ./run_ffead.sh ffead-cpp-6.0-sql v-picov postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled-base.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled-base.dockerfile new file mode 100644 index 00000000000..a5d8ab4bcd4 --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled-base.dockerfile @@ -0,0 +1,98 @@ +FROM sumeetchhetri/ffead-cpp-sql-raw-profiled-base:6.0 +LABEL maintainer="Sumeet Chhetri" +LABEL version="6.0" +LABEL description="SQL Raw Base ffead-cpp-v-picov-profiled docker image with commit id - master" + +RUN rm -f /usr/local/lib/libffead-* /usr/local/lib/libte_benc* /usr/local/lib/libinter.so /usr/local/lib/libdinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libffead-modules.so /usr/local/lib/libffead-modules.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libffead-framework.so /usr/local/lib/libffead-framework.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libinter.so /usr/local/lib/libinter.so && \ + ln -s ${IROOT}/ffead-cpp-6.0-sql/lib/libdinter.so /usr/local/lib/libdinter.so && \ + ldconfig + +RUN apt update -yqq && apt install -y git make && rm -rf /var/lib/apt/lists/* +#For Latest vlang, uncomment the below mentioned line, due to lot of new enhancements and unsafe block handling, vlnag has slowed down tremendously +#RUN git clone https://github.com/vlang/v && cd v && make && ./v symlink + +#For the fastest vlang performance, use 0.1.29, where the unsafe changes were only restricted to pointer arithmetic +RUN wget -q https://github.com/vlang/v/releases/download/0.1.29/v_linux.zip && unzip -q v_linux.zip && cd v && chmod +x v && ./v symlink && cd .. && rm -f v_linux.zip + +WORKDIR /tmp +RUN mkdir postgresql + +COPY postgresql/* /tmp/postgresql/ + +#POSTGRESQL +WORKDIR /tmp/postgresql/ + +# prepare PostgreSQL APT repository +RUN apt-get -yqq update && apt-get -yqq install locales gnupg lsb-release + +RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - +RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list + +ENV PG_VERSION 13 +RUN locale-gen en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 +ENV DEBIAN_FRONTEND noninteractive + +# install postgresql on database machine +RUN apt-get -yqq update && apt-get -yqq install postgresql-13 postgresql-contrib-13 && rm -rf /var/lib/apt/lists/* + +# Make sure all the configuration files in main belong to postgres +RUN mv postgresql.conf /etc/postgresql/${PG_VERSION}/main/postgresql.conf +RUN mv pg_hba.conf /etc/postgresql/${PG_VERSION}/main/pg_hba.conf + +RUN chown -Rf postgres:postgres /etc/postgresql/${PG_VERSION}/main + +RUN cp -R -p /var/lib/postgresql/${PG_VERSION}/main /ssd/postgresql +RUN cp /etc/postgresql/${PG_VERSION}/main/postgresql.conf /ssd/postgresql +RUN mv 60-postgresql-shm.conf /etc/sysctl.d/60-postgresql-shm.conf + +RUN chown -Rf postgres:postgres /var/run/postgresql +RUN chmod 2777 /var/run/postgresql +RUN chown postgres:postgres /etc/sysctl.d/60-postgresql-shm.conf +RUN chown postgres:postgres create-postgres* +RUN chown -Rf postgres:postgres /ssd + +ENV PGDATA=/ssd/postgresql + +USER postgres + +# We have to wait for postgres to start before we can use the cli +RUN service postgresql start && \ + until psql -c "\q"; do sleep 1; done && \ + psql < create-postgres-database.sql && \ + psql -a hello_world < create-postgres.sql && \ + service postgresql stop +#POSTGRESQL + +USER root + +#WRK +WORKDIR /tmp/wrk +RUN apt-get -yqq update && apt-get -yqq install libluajit-5.1-dev libssl-dev luajit && rm -rf /var/lib/apt/lists/* && \ + curl -sL https://github.com/wg/wrk/archive/4.1.0.tar.gz | tar xz --strip-components=1 +ENV LDFLAGS="-O3 -march=native -flto" +ENV CFLAGS="-I /usr/include/luajit-2.1 $LDFLAGS" +RUN make WITH_LUAJIT=/usr WITH_OPENSSL=/usr -j "$(nproc)" +RUN cp wrk /usr/local/bin + +ENV name name +ENV server_host server_host +ENV levels levels +ENV duration duration +ENV max_concurrency max_concurrency +ENV max_threads max_threads +ENV pipeline pipeline +ENV accept accept +#WRK + +WORKDIR ${IROOT} + +COPY sql-v-picov-profiled-install.sh install_ffead-cpp-sql-raw-v-picov-profiled.sh ${IROOT}/ +RUN chmod 755 ${IROOT}/sql-v-picov-profiled-install.sh ${IROOT}/install_ffead-cpp-sql-raw-v-picov-profiled.sh +RUN ./sql-v-picov-profiled-install.sh diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled.dockerfile new file mode 100644 index 00000000000..9db68366eb5 --- /dev/null +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov-raw-profiled.dockerfile @@ -0,0 +1,7 @@ +FROM sumeetchhetri/ffead-cpp-v-picov-raw-profiled-base:6.0 + +ENV IROOT=/installs + +WORKDIR / + +CMD ./run_ffead.sh ffead-cpp-6.0-sql v-picov postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov.dockerfile index cfd87d991b9..1286bd5dff4 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-v-picov.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-picov.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-v-base:5.2 +FROM sumeetchhetri/ffead-cpp-v-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 v-picov postgresql-raw memory +CMD ./run_ffead.sh ffead-cpp-6.0 v-picov postgresql-raw memory diff --git a/frameworks/C++/ffead-cpp/ffead-cpp-v-vweb.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp-v-vweb.dockerfile index 8695c071d1d..8514209f8ed 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp-v-vweb.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp-v-vweb.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-v-base:5.2 +FROM sumeetchhetri/ffead-cpp-v-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 v-vweb +CMD ./run_ffead.sh ffead-cpp-6.0 v-vweb diff --git a/frameworks/C++/ffead-cpp/ffead-cpp.dockerfile b/frameworks/C++/ffead-cpp/ffead-cpp.dockerfile index b3c17a947f2..a1d1cd9435c 100644 --- a/frameworks/C++/ffead-cpp/ffead-cpp.dockerfile +++ b/frameworks/C++/ffead-cpp/ffead-cpp.dockerfile @@ -1,9 +1,7 @@ -FROM sumeetchhetri/ffead-cpp-5.0-base:5.2 +FROM sumeetchhetri/ffead-cpp-base:6.0 ENV IROOT=/installs WORKDIR / -EXPOSE 8080 - -CMD ./run_ffead.sh ffead-cpp-5.0 emb mongo redis +CMD ./run_ffead.sh ffead-cpp-6.0 emb mongo redis diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-backends.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-backends.sh index da367087263..480cb0214b3 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-backends.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-backends.sh @@ -2,15 +2,6 @@ cd $IROOT -git clone https://github.com/sumeetchhetri/ffead-cpp -cd ffead-cpp -git checkout 4e98d8ba1a11505a0b7b450285b20ac0ad7a104f -b 5.0 -rm -rf .git -cd .. -mv ffead-cpp ffead-cpp-src -mv ffead-cpp-src/lang-server-backends ${IROOT}/ -cd $IROOT - CURR_TYPE="lithium" if [ "$CURR_TYPE" = "lithium" ] then @@ -27,7 +18,6 @@ then CINATRA_INC="-DCINATRA_INCLUDES=${IROOT}/cinatra/include" git clone https://github.com/sumeetchhetri/cinatra.git cd cinatra - git checkout b3871a074f6107f57acf42a15fa872d4076436ab -b works rm -rf .git fi @@ -40,7 +30,6 @@ then SRV_TYPE=SRV_DROGON git clone --recurse-submodules https://github.com/sumeetchhetri/drogon cd drogon - git checkout a10934f3f85f361cde58a891d3cf1f1df3a8ea8a -b works mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_CTL=off -DBUILD_EXAMPLES=off -DBUILD_ORM=off .. @@ -54,26 +43,26 @@ if [ "$CURR_TYPE" = "nghttp2" ] then apt install --no-install-recommends -y libjansson-dev libc-ares-dev libboost-all-dev cd $IROOT - wget -q https://github.com/nghttp2/nghttp2/releases/download/v1.41.0/nghttp2-1.41.0.tar.gz - tar xf nghttp2-1.41.0.tar.gz - cd nghttp2-1.41.0 + wget -q https://github.com/nghttp2/nghttp2/releases/download/v1.42.0/nghttp2-1.42.0.tar.gz + tar xf nghttp2-1.42.0.tar.gz + cd nghttp2-1.42.0 cmake -DENABLE_ASIO_LIB=on -GNinja . ninja install cd $IROOT - rm -rf nghttp2-1.41.0 nghttp2-1.41.0.tar.gz + rm -rf nghttp2-1.42.0 nghttp2-1.42.0.tar.gz fi CURR_TYPE="mongols" if [ "$CURR_TYPE" = "mongols" ] then cd $IROOT - wget -q https://github.com/webcpp/mongols/archive/release-1.8.4.9.tar.gz - tar xf release-1.8.4.9.tar.gz - cd mongols-release-1.8.4.9/ + wget -q https://github.com/webcpp/mongols/archive/release-1.8.4.12.tar.gz + tar xf release-1.8.4.12.tar.gz + cd mongols-release-1.8.4.12/ make clean && make -j4 && make install && ldconfig cp -rf inc/mongols/lib/* /usr/local/include/ cd $IROOT - rm -rf mongols-release-1.8.4.9/ release-1.8.4.9.tar.gz + rm -rf mongols-release-1.8.4.12/ release-1.8.4.12.tar.gz fi CURR_TYPE="uv-cpp" @@ -98,7 +87,8 @@ then git clone https://github.com/chronoxor/CppServer cd CppServer gil update - cd build + cd $IROOT/CppServer/modules/CppCommon/modules/fmt && git checkout b9ab5c8836bbffbe0a877f64d6faef8fbf4fd394 -b works + cd $IROOT/CppServer/build ./unix.sh cp $IROOT/CppServer/bin/libcppserver.a /usr/local/lib/ cp -rf $IROOT/CppServer/modules/asio/asio/include/* /usr/local/include/ @@ -111,4 +101,26 @@ then rm -rf CppServer fi +CURR_TYPE="lsquic-no" +if [ "$CURR_TYPE" = "lsquic" ] +then + apt install --no-install-recommends -y libunwind-dev golang libevent-dev + cd $IROOT + git clone https://boringssl.googlesource.com/boringssl + cd boringssl + git checkout b117a3a0b7bd11fe6ebd503ec6b45d6b910b41a1 + sed -i "s/-Werror//g" CMakeLists.txt + cmake -DCMAKE_BUILD_TYPE=Release . && make -j4 + cd $IROOT + git clone https://github.com/litespeedtech/lsquic.git + cd lsquic + git submodule init + git submodule update + cmake -DBORINGSSL_DIR=${IROOT}/boringssl . && make install -j4 + cd $IROOT + rm -rf lsquic boringssl + apt remove -y golang + apt autoremove -y +fi + rm -rf /var/lib/apt/lists/* diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-dependencies.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-dependencies.sh index 2da9120cdb3..313e0355592 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-dependencies.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-dependencies.sh @@ -37,21 +37,6 @@ wget -q https://downloads.mysql.com/archives/get/p/10/file/mysql-connector-odbc- dpkg -i mysql-connector-odbc-setup_8.0.21-1ubuntu20.04_amd64.deb rm -f *.deb -#mkdir -p /usr/lib/x86_64-linux-gnu/odbc -#wget -q https://downloads.mysql.com/archives/get/p/10/file/mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit.tar.gz -#tar xf mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit.tar.gz -#mv mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit/lib/libmyodbc8* /usr/lib/x86_64-linux-gnu/odbc/ -#mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit/bin/myodbc-installer -d -a -n "MySQL" -t "DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libmyodbc8w.so;" -#rm -f mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit.tar.gz -#rm -rf mysql-connector-odbc-8.0.19-linux-ubuntu18.04-x86-64bit - -#wget -q https://cdn.mysql.com/archives/mysql-connector-odbc-5.3/mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit.tar.gz -#tar xf mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit.tar.gz -#mv mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit/lib/libmyodbc5* /usr/lib/x86_64-linux-gnu/odbc/ -#mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit/bin/myodbc-installer -d -a -n "MySQL" -t "DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libmyodbc5w.so;" -#rm -f mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit.tar.gz -#rm -rf mysql-connector-odbc-5.3.11-linux-ubuntu16.04-x86-64bit - wget -q https://github.com/mongodb/mongo-c-driver/releases/download/1.4.2/mongo-c-driver-1.4.2.tar.gz tar xf mongo-c-driver-1.4.2.tar.gz rm -f mongo-c-driver-1.4.2.tar.gz diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-framework.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-framework.sh index ca634c9d81e..3f08256e755 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-framework.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-framework.sh @@ -6,18 +6,26 @@ MAX_THREADS=$(( 3 * `nproc` / 2 )) WRIT_THREADS=$(( $MAX_THREADS / 3 )) SERV_THREADS=$(( $MAX_THREADS - $WRIT_THREADS )) +#git checkout e243bc096cd570cfee1edfecbcd91f4c4056fa1a -b 6.0 +git clone https://github.com/sumeetchhetri/ffead-cpp +cd ffead-cpp +rm -rf .git +cd .. +mv ffead-cpp ffead-cpp-src +mv ffead-cpp-src/lang-server-backends ${IROOT}/ + cd $IROOT/ffead-cpp-src/ chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh -rm -rf web/te-benchmark-um -rm -rf web/te-benchmark-um-pq -rm -rf web/te-benchmark-um-mgr -rm -rf web/te-benchmark-um-pq-async +#rm -rf web/te-benchmark-um +#rm -rf web/te-benchmark-um-pq +#rm -rf web/te-benchmark-um-mgr +#rm -rf web/te-benchmark-um-pq-async mv ${IROOT}/server.sh script/ -mv ${IROOT}/te-benchmark-um web/ -mv ${IROOT}/te-benchmark-um-pq web/ -mv ${IROOT}/te-benchmark-um-mgr web/ -mv ${IROOT}/te-benchmark-um-pq-async web/ +#mv ${IROOT}/te-benchmark-um web/ +#mv ${IROOT}/te-benchmark-um-pq web/ +#mv ${IROOT}/te-benchmark-um-mgr web/ +#mv ${IROOT}/te-benchmark-um-pq-async web/ sed -i 's|THRD_PSIZ=6|THRD_PSIZ='${SERV_THREADS}'|g' resources/server.prop sed -i 's|W_THRD_PSIZ=2|W_THRD_PSIZ='${WRIT_THREADS}'|g' resources/server.prop sed -i 's|ENABLE_CRS=true|ENABLE_CRS=false|g' resources/server.prop @@ -56,8 +64,8 @@ sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/default/libdefault${LIB_EXT} D sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/flexApp/libflexApp${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/oauthApp/liboauthApp${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/markers/libmarkers${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark/libte_benchmark${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/peer-server/libpeer_server${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt +sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark/libte-benchmark${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt +sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/peer-server/libpeer-server${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt sed -i 's|web/default/src/autotools/Makefile||g' configure.ac sed -i 's|web/flexApp/src/autotools/Makefile||g' configure.ac sed -i 's|web/oauthApp/src/autotools/Makefile||g' configure.ac @@ -83,31 +91,51 @@ rm -f /usr/local/lib/libte_benc* rm -f /usr/local/lib/libinter.so rm -f /usr/local/lib/libdinter.so -if [ ! -d "ffead-cpp-5.0-bin" ] +if [ ! -d "ffead-cpp-6.0-bin" ] then exit 1 fi -cd ffead-cpp-5.0-bin +cd ffead-cpp-6.0-bin #cache related dockerfiles will add the cache.xml accordingly whenever needed chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh ./server.sh & +COUNTER=0 while [ ! -f lib/libinter.so ] do - sleep 1 + sleep 1 + COUNTER=$((COUNTER+1)) + if [ "$COUNTER" = 120 ] + then + cat logs/jobs.log + echo "ffead-cpp exiting exiting due to failure...." + exit 1 + fi done +COUNTER=0 while [ ! -f lib/libdinter.so ] do - sleep 1 + sleep 1 + COUNTER=$((COUNTER+1)) + if [ "$COUNTER" = 120 ] + then + cat logs/jobs.log + echo "ffead-cpp exiting exiting due to failure....ddlib" + exit 1 + fi done +echo "ffead-cpp start successful" +sleep 5 +cd tests && rm -f test.csv && cp ${IROOT}/ffead-cpp-src/tests/test-te.csv test.csv && chmod +x *.sh && ./runTests.sh +echo "ffead-cpp normal shutdown" pkill ffead-cpp cd ${IROOT}/ffead-cpp-src/ -cp -rf ffead-cpp-5.0-bin ${IROOT}/ffead-cpp-5.0 -rm -rf ffead-cpp-5.0-bin +cp -rf ffead-cpp-6.0-bin ${IROOT}/ffead-cpp-6.0 +rm -rf ffead-cpp-6.0-bin mv ${IROOT}/nginxfc ${IROOT}/nginx-ffead-mongo -cd ${IROOT}/ffead-cpp-5.0 +cd ${IROOT}/ffead-cpp-6.0 chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh chmod 755 *.sh @@ -122,31 +150,51 @@ cp -f web/te-benchmark-um/sql-src/TeBkUmWorldsql.h web/te-benchmark-um/include/T cp -f web/te-benchmark-um/sql-src/TeBkUmWorldsql.cpp web/te-benchmark-um/src/TeBkUmWorld.cpp make install -j${MAX_THREADS} -if [ ! -d "ffead-cpp-5.0-bin" ] +if [ ! -d "ffead-cpp-6.0-bin" ] then exit 1 fi -cd ffead-cpp-5.0-bin +cd ffead-cpp-6.0-bin #cache related dockerfiles will add the cache.xml accordingly whenever needed chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh ./server.sh & +COUNTER=0 while [ ! -f lib/libinter.so ] do - sleep 1 + sleep 1 + COUNTER=$((COUNTER+1)) + if [ "$COUNTER" = 120 ] + then + cat logs/jobs.log + echo "ffead-cpp exiting exiting due to failure...." + exit 1 + fi done +COUNTER=0 while [ ! -f lib/libdinter.so ] do - sleep 1 + sleep 1 + COUNTER=$((COUNTER+1)) + if [ "$COUNTER" = 120 ] + then + cat logs/jobs.log + echo "ffead-cpp exiting exiting due to failure....ddlib" + exit 1 + fi done +echo "ffead-cpp start successful" +sleep 5 +cd tests && rm -f test.csv && cp ${IROOT}/ffead-cpp-src/tests/test-te.csv test.csv && chmod +x *.sh && ./runTests.sh +echo "ffead-cpp normal shutdown" pkill ffead-cpp cd ${IROOT}/ffead-cpp-src/ -cp -rf ffead-cpp-5.0-bin ${IROOT}/ffead-cpp-5.0-sql -rm -rf ffead-cpp-5.0-bin +cp -rf ffead-cpp-6.0-bin ${IROOT}/ffead-cpp-6.0-sql +rm -rf ffead-cpp-6.0-bin mv ${IROOT}/nginxfc ${IROOT}/nginx-ffead-sql -cd ${IROOT}/ffead-cpp-5.0-sql +cd ${IROOT}/ffead-cpp-6.0-sql chmod 755 *.sh resources/*.sh rtdcf/autotools/*.sh chmod 755 *.sh diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-httpd.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-httpd.sh index 8afc78fa7df..bdc0372815c 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-httpd.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-httpd.sh @@ -2,7 +2,7 @@ cd $IROOT -#chown -R www-data:www-data ffead-cpp-5.0 +#chown -R www-data:www-data ffead-cpp-6.0 #wget -q https://archive.apache.org/dist/httpd/httpd-2.4.25.tar.gz #wget -q https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz @@ -23,13 +23,13 @@ cd $IROOT #make install #cd ${IROOT} -sed -i 's|#define PACKAGE_BUGREPORT "sumeet.chhetri@gmail.com"| |g' ${IROOT}/ffead-cpp-5.0/include/AppDefines.h -sed -i 's|#define PACKAGE_NAME "ffead-cpp"| |g' ${IROOT}/ffead-cpp-5.0/include/AppDefines.h -sed -i 's|#define PACKAGE_STRING "ffead-cpp 5.0"| |g' ${IROOT}/ffead-cpp-5.0/include/AppDefines.h -sed -i 's|#define PACKAGE_TARNAME "ffead-cpp"| |g' ${IROOT}/ffead-cpp-5.0/include/AppDefines.h -sed -i 's|#define PACKAGE_VERSION "5.0"| |g' ${IROOT}/ffead-cpp-5.0/include/AppDefines.h +sed -i 's|#define PACKAGE_BUGREPORT "sumeet.chhetri@gmail.com"| |g' ${IROOT}/ffead-cpp-6.0/include/AppDefines.h +sed -i 's|#define PACKAGE_NAME "ffead-cpp"| |g' ${IROOT}/ffead-cpp-6.0/include/AppDefines.h +sed -i 's|#define PACKAGE_STRING "ffead-cpp 6.0"| |g' ${IROOT}/ffead-cpp-6.0/include/AppDefines.h +sed -i 's|#define PACKAGE_TARNAME "ffead-cpp"| |g' ${IROOT}/ffead-cpp-6.0/include/AppDefines.h +sed -i 's|#define PACKAGE_VERSION "6.0"| |g' ${IROOT}/ffead-cpp-6.0/include/AppDefines.h -FFEADROOT=${IROOT}/ffead-cpp-5.0 +FFEADROOT=${IROOT}/ffead-cpp-6.0 ETROOT=${FFEADROOT//\//\\/} EIROOT=${IROOT//\//\\/} diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-nginx.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-nginx.sh index 135576f34ea..6922d4bc131 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-nginx.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-nginx.sh @@ -3,6 +3,6 @@ cd $IROOT cp ${IROOT}/ffead-cpp-src/modules/nginx_mod_ffeadcpp/nginx.conf ${IROOT}/nginx-ffead-mongo/conf/ -sed -i 's|FFEAD_PATH|'${IROOT}/ffead-cpp-5.0'|g' ${IROOT}/nginx-ffead-mongo/conf/nginx.conf +sed -i 's|FFEAD_PATH|'${IROOT}/ffead-cpp-6.0'|g' ${IROOT}/nginx-ffead-mongo/conf/nginx.conf cp ${IROOT}/ffead-cpp-src/modules/nginx_mod_ffeadcpp/nginx.conf ${IROOT}/nginx-ffead-sql/conf/ -sed -i 's|FFEAD_PATH|'${IROOT}/ffead-cpp-5.0-sql'|g' ${IROOT}/nginx-ffead-sql/conf/nginx.conf +sed -i 's|FFEAD_PATH|'${IROOT}/ffead-cpp-6.0-sql'|g' ${IROOT}/nginx-ffead-sql/conf/nginx.conf diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-profiled.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-profiled.sh index 349e7344355..11bbe4d026c 100644 --- a/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-profiled.sh +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-profiled.sh @@ -22,7 +22,7 @@ do then cat ffead.log cat logs/jobs.log - echo "exiting...." + echo "ffead-cpp exiting exiting due to failure...." exit 1 fi done @@ -35,10 +35,15 @@ do then cat ffead.log cat logs/jobs.log - echo "exiting....dlib" + echo "ffead-cpp exiting exiting due to failure....dlib" exit 1 fi done +echo "ffead-cpp start successful" +sleep 5 +#cd tests && chmod +x *.sh && ./runTests.sh +#echo "ffead-cpp normal shutdown" +#cd - rm -f serv.ctrl pkill ffead-cpp @@ -47,6 +52,7 @@ service postgresql start #For profiling/benchmarking sed -i 's|EVH_SINGLE=false|EVH_SINGLE=true|g' resources/server.prop +#sed -i 's|LOGGING_ENABLED=false|LOGGING_ENABLED=true|g' resources/server.prop nohup bash -c "./server.sh > ffead.log &" sleep 10 echo "ffead-cpp with sql-raw support launched" diff --git a/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-v-picov-profiled.sh b/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-v-picov-profiled.sh new file mode 100644 index 00000000000..e2281d23f38 --- /dev/null +++ b/frameworks/C++/ffead-cpp/install_ffead-cpp-sql-raw-v-picov-profiled.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +export FFEAD_CPP_PATH=${IROOT}/ffead-cpp-6.0-sql +export LD_LIBRARY_PATH=${IROOT}/:${IROOT}/lib:${FFEAD_CPP_PATH}/lib:/usr/local/lib:$LD_LIBRARY_PATH + +cd $IROOT/lang-server-backends/v/pico.v + +cp -f ${FFEAD_CPP_PATH}/web/te-benchmark-um-pq/config/cachememory.xml ${FFEAD_CPP_PATH}/web/te-benchmark-um-pq/config/cache.xml +sed -i 's|EVH_SINGLE=false|EVH_SINGLE=true|g' ${FFEAD_CPP_PATH}/resources/server.prop +#sed -i 's|LOGGING_ENABLED=false|LOGGING_ENABLED=true|g' ${FFEAD_CPP_PATH}/resources/server.prop +nohup bash -c "./main --server_dir=$FFEAD_CPP_PATH --server_port=8080 > ffead.log &" +sleep 10 +echo "ffead-cpp-v-picov with sql-raw support launched" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 256 --timeout 8 -t 2 "http://localhost:8080/plaintext" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 256 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/json" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 256 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/fortunes" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 512 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/db" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 512 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/queries?queries=20" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 512 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/updates?queries=20" +wrk -H 'Host: localhost' -H 'Accept: application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7' \ + -H 'Connection: keep-alive' --latency -d 5 -c 512 --timeout 8 -t 2 "http://localhost:8080/te-benchmark-um-pq/cached-worlds?count=20" +echo "normal shutdown" +pkill main + +cd / + +exit 0 diff --git a/frameworks/C++/ffead-cpp/run_ffead.sh b/frameworks/C++/ffead-cpp/run_ffead.sh index 79b622b3694..3fd9afca80e 100644 --- a/frameworks/C++/ffead-cpp/run_ffead.sh +++ b/frameworks/C++/ffead-cpp/run_ffead.sh @@ -7,7 +7,10 @@ rm -f /usr/local/lib/libdinter.so export FFEAD_CPP_PATH=${IROOT}/$1 -ln -s ${FFEAD_CPP_PATH}/lib/libte_benchmark_um.so /usr/local/lib/libte_benchmark_um.so +ln -s ${FFEAD_CPP_PATH}/lib/libte-benchmark-um.so /usr/local/lib/libte-benchmark-um.so +ln -s ${FFEAD_CPP_PATH}/lib/libte-benchmark-um-pq.so /usr/local/lib/libte-benchmark-um-pq.so +ln -s ${FFEAD_CPP_PATH}/lib/libte-benchmark-um-mgr.so /usr/local/lib/libte-benchmark-um-mgr.so +ln -s ${FFEAD_CPP_PATH}/lib/libte-benchmark-um-pq-async.so /usr/local/lib/libte-benchmark-um-pq-async.so ln -s ${FFEAD_CPP_PATH}/lib/libffead-modules.so /usr/local/lib/libffead-modules.so ln -s ${FFEAD_CPP_PATH}/lib/libffead-framework.so /usr/local/lib/libffead-framework.so ln -s ${FFEAD_CPP_PATH}/lib/libinter.so /usr/local/lib/libinter.so @@ -117,8 +120,8 @@ elif [ "$2" = "apache" ] then if [ "$3" = "mysql" ] || [ "$3" = "postgresql" ] then - sed -i 's|/installs/ffead-cpp-5.0|'/installs/ffead-cpp-5.0-sql'|g' /etc/apache2/apache2.conf - sed -i 's|/installs/ffead-cpp-5.0|'/installs/ffead-cpp-5.0-sql'|g' /etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/ffead-site.conf + sed -i 's|/installs/ffead-cpp-6.0|'/installs/ffead-cpp-6.0-sql'|g' /etc/apache2/apache2.conf + sed -i 's|/installs/ffead-cpp-6.0|'/installs/ffead-cpp-6.0-sql'|g' /etc/apache2/sites-enabled/000-default.conf /etc/apache2/sites-enabled/ffead-site.conf fi sed -i 's|30|3|g' web/te-benchmark-um/config/sdorm.xml sed -i 's|10|2|g' web/te-benchmark-um/config/cache.xml @@ -237,6 +240,10 @@ then cd ${IROOT} java -Xmx2G -Xms2G -server -XX:+UseNUMA -XX:+UseParallelGC -XX:+AggressiveOpts \ -jar wizzardo-ffead-cpp-all-1.0.jar $FFEAD_CPP_PATH 8080 env=prod +elif [ "$2" = "seastar" ] +then + cd ${IROOT}/lang-server-backends/c++/seastar + ./ffead-cpp-seastar --port=8080 --address=0.0.0.0 --fcpdir=${FFEAD_CPP_PATH} -c$(nproc) fi wait diff --git a/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang-dbg.sh b/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang-dbg.sh new file mode 100644 index 00000000000..3b978e368a0 --- /dev/null +++ b/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang-dbg.sh @@ -0,0 +1,21 @@ +cd $IROOT/ffead-cpp-src/ + +rm -rf build +mkdir build +cd build +CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DSRV_EMB=on -DMOD_REDIS=on -DDEBUG=on .. +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw + +#Start postgresql +service postgresql stop +#For profiling/benchmarking + +cd $IROOT/ +sed -i 's|cmake |CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +#sed -i 's|-fprofile-instr-generate=/tmp/cprof.prof|-fprofile-instr-generate=/tmp/cprofdi.prof|g' $IROOT/ffead-cpp-sql-raw/rtdcf/CMakeLists.txt.template +apt update -yqq && apt install -yqq vim gdb net-tools telnet iputils-ping +./install_ffead-cpp-sql-raw-profiled.sh async + +#mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-6.0-sql +#sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq-async/config/sdorm.xml + diff --git a/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang.sh b/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang.sh index f406ebd3395..1e94a15b723 100644 --- a/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang.sh +++ b/frameworks/C++/ffead-cpp/sql-async-profiled-install-clang.sh @@ -1,47 +1,17 @@ -mkdir /tmp/profile-data - -rm -rf $IROOT/ffead-cpp-5.0-sql - -if [ "$1" = "batch" ] -then - apt remove -yqq libpq-dev - apt autoremove -yqq - apt update && apt install -y bison flex libreadline-dev - cd /tmp - wget -q https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz - tar -xzf batch_mode_ubuntu.tar.gz - cd postgres-batch_mode_ubuntu - ./configure --prefix=/usr CFLAGS='-O2 -pipe -march=native' - make && make install -fi - -apt update -yqq && apt install -yqq clang - cd $IROOT/ffead-cpp-src/ -rm -rf CMakeCache.txt CMakeFiles -rm -rf web/te-benchmark-um web/te-benchmark-um-mgr web/te-benchmark-um-pq - -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-mgr)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um/libte_benchmark_um${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-mgr/libte_benchmark_um_mgr${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq/libte_benchmark_um_pq${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt - -sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq-async/config/sdorm.xml rm -rf build mkdir build cd build CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-generate=/tmp/cprof.prof" cmake -DSRV_EMB=on -DMOD_REDIS=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -sed -i 's|cmake .|CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +sed -i 's|cmake |CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh #sed -i 's|-fprofile-instr-generate=/tmp/cprof.prof|-fprofile-instr-generate=/tmp/cprofdi.prof|g' $IROOT/ffead-cpp-sql-raw/rtdcf/CMakeLists.txt.template ./install_ffead-cpp-sql-raw-profiled.sh async rm -rf $IROOT/ffead-cpp-sql-raw @@ -53,20 +23,20 @@ cd build llvm-profdata-10 merge -output=/tmp/cprof.pgo /tmp/cprof.prof #llvm-profdata-10 merge -output=/tmp/cprofdi.pgo /tmp/cprofdi.prof ls -ltr /tmp/cprof* -CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-use=/tmp/cprof.pgo" cmake -DSRV_EMB=on -DMOD_MEMCACHED=on -DMOD_REDIS=on -DMOD_SDORM_MONGO=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-use=/tmp/cprof.pgo" cmake -DSRV_EMB=on -DMOD_REDIS=on .. +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -sed -i 's|cmake .|CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +sed -i 's|cmake |CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh #sed -i 's|-fprofile-instr-use=/tmp/cprof.pgo|-fprofile-instr-use=/tmp/cprofdi.pgo|g' $IROOT/ffead-cpp-sql-raw/rtdcf/CMakeLists.txt.template ./install_ffead-cpp-sql-raw-profiled.sh async -mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-5.0-sql +mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-6.0-sql -sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-5.0-sql/web/te-benchmark-um-pq-async/config/sdorm.xml +sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq-async/config/sdorm.xml apt remove -yqq postgresql-13 postgresql-contrib-13 gnupg lsb-release apt autoremove -yqq diff --git a/frameworks/C++/ffead-cpp/sql-async-profiled-install.sh b/frameworks/C++/ffead-cpp/sql-async-profiled-install.sh index d05630909e8..df1a2d1847d 100644 --- a/frameworks/C++/ffead-cpp/sql-async-profiled-install.sh +++ b/frameworks/C++/ffead-cpp/sql-async-profiled-install.sh @@ -1,45 +1,17 @@ -mkdir /tmp/profile-data - -rm -rf $IROOT/ffead-cpp-5.0-sql - -if [ "$1" = "batch" ] -then - apt remove -yqq libpq-dev - apt autoremove -yqq - apt update && apt install -y bison flex libreadline-dev - cd /tmp - wget -q https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz - tar -xzf batch_mode_ubuntu.tar.gz - cd postgres-batch_mode_ubuntu - ./configure --prefix=/usr CFLAGS='-O2 -pipe -march=native' - make && make install -fi - cd $IROOT/ffead-cpp-src/ -rm -rf CMakeCache.txt CMakeFiles -rm -rf web/te-benchmark-um web/te-benchmark-um-mgr web/te-benchmark-um-pq - -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-mgr)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um/libte_benchmark_um${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-mgr/libte_benchmark_um_mgr${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq/libte_benchmark_um_pq${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt - -sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq-async/config/sdorm.xml rm -rf build mkdir build cd build CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-generate" cmake -DSRV_EMB=on -DMOD_REDIS=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -#sed -i 's|cmake .|cmake -DCMAKE_EXE_LINKER_FLAGS="-fprofile-dir=/tmp/profile-data -fprofile-generate" -DCMAKE_CXX_FLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-generate" .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +#sed -i 's|cmake |cmake -DCMAKE_EXE_LINKER_FLAGS="-fprofile-dir=/tmp/profile-data -fprofile-generate" -DCMAKE_CXX_FLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-generate" |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh ./install_ffead-cpp-sql-raw-profiled.sh async rm -rf $IROOT/ffead-cpp-sql-raw @@ -47,19 +19,19 @@ cd $IROOT/ffead-cpp-src rm -rf build mkdir build cd build -CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-use=/tmp/profile-data -fprofile-correction" cmake -DSRV_EMB=on -DMOD_MEMCACHED=on -DMOD_REDIS=on -DMOD_SDORM_MONGO=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-use=/tmp/profile-data -fprofile-correction" cmake -DSRV_EMB=on -DMOD_REDIS=on .. +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -#sed -i 's|cmake .|CXXFLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-use -fprofile-correction" cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +#sed -i 's|cmake |CXXFLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-use -fprofile-correction" cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh ./install_ffead-cpp-sql-raw-profiled.sh async -mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-5.0-sql +mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-6.0-sql -sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-5.0-sql/web/te-benchmark-um-pq-async/config/sdorm.xml +sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq-async/config/sdorm.xml apt remove -yqq postgresql-13 postgresql-contrib-13 gnupg lsb-release apt autoremove -yqq diff --git a/frameworks/C++/ffead-cpp/sql-profiled-install-clang.sh b/frameworks/C++/ffead-cpp/sql-profiled-install-clang.sh index 0279b761354..f7afae44f6e 100644 --- a/frameworks/C++/ffead-cpp/sql-profiled-install-clang.sh +++ b/frameworks/C++/ffead-cpp/sql-profiled-install-clang.sh @@ -1,47 +1,17 @@ -mkdir /tmp/profile-data - -rm -rf $IROOT/ffead-cpp-5.0-sql - -if [ "$1" = "batch" ] -then - apt remove -yqq libpq-dev - apt autoremove -yqq - apt update && apt install -y bison flex libreadline-dev - cd /tmp - wget -q https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz - tar -xzf batch_mode_ubuntu.tar.gz - cd postgres-batch_mode_ubuntu - ./configure --prefix=/usr CFLAGS='-O2 -pipe -march=native' - make && make install -fi - -apt update -yqq && apt install -yqq clang - cd $IROOT/ffead-cpp-src/ -rm -rf CMakeCache.txt CMakeFiles -rm -rf web/te-benchmark-um web/te-benchmark-um-mgr web/te-benchmark-um-pq-async - -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-mgr)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq-async)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um/libte_benchmark_um${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-mgr/libte_benchmark_um_mgr${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq-async/libte_benchmark_um_pq_async${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt - -sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq/config/sdorm.xml rm -rf build mkdir build cd build CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-generate=/tmp/cprof.prof" cmake -DSRV_EMB=on -DMOD_REDIS=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -sed -i 's|cmake .|CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +sed -i 's|cmake |CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh #sed -i 's|-fprofile-instr-generate=/tmp/cprof.prof|-fprofile-instr-generate=/tmp/cprofdi.prof|g' $IROOT/ffead-cpp-sql-raw/rtdcf/CMakeLists.txt.template ./install_ffead-cpp-sql-raw-profiled.sh rm -rf $IROOT/ffead-cpp-sql-raw @@ -53,20 +23,20 @@ cd build llvm-profdata-10 merge -output=/tmp/cprof.pgo /tmp/cprof.prof #llvm-profdata-10 merge -output=/tmp/cprofdi.pgo /tmp/cprofdi.prof ls -ltr /tmp/cprof* -CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-use=/tmp/cprof.pgo" cmake -DSRV_EMB=on -DMOD_MEMCACHED=on -DMOD_REDIS=on -DMOD_SDORM_MONGO=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +CC=/usr/bin/clang CXX=/usr/bin/clang++ CXXFLAGS="-march=native -flto -fprofile-instr-use=/tmp/cprof.pgo" cmake -DSRV_EMB=on -DMOD_REDIS=on .. +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -sed -i 's|cmake .|CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +sed -i 's|cmake |CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh #sed -i 's|-fprofile-instr-use=/tmp/cprof.pgo|-fprofile-instr-use=/tmp/cprofdi.pgo|g' $IROOT/ffead-cpp-sql-raw/rtdcf/CMakeLists.txt.template ./install_ffead-cpp-sql-raw-profiled.sh -mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-5.0-sql +mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-6.0-sql -sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-5.0-sql/web/te-benchmark-um-pq/config/sdorm.xml +sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq/config/sdorm.xml apt remove -yqq postgresql-13 postgresql-contrib-13 gnupg lsb-release apt autoremove -yqq diff --git a/frameworks/C++/ffead-cpp/sql-profiled-install.sh b/frameworks/C++/ffead-cpp/sql-profiled-install.sh index fad97956c28..e1465d99cf0 100644 --- a/frameworks/C++/ffead-cpp/sql-profiled-install.sh +++ b/frameworks/C++/ffead-cpp/sql-profiled-install.sh @@ -1,45 +1,17 @@ -mkdir /tmp/profile-data - -rm -rf $IROOT/ffead-cpp-5.0-sql - -if [ "$1" = "batch" ] -then - apt remove -yqq libpq-dev - apt autoremove -yqq - apt update && apt install -y bison flex libreadline-dev - cd /tmp - wget -q https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz - tar -xzf batch_mode_ubuntu.tar.gz - cd postgres-batch_mode_ubuntu - ./configure --prefix=/usr CFLAGS='-O2 -pipe -march=native' - make && make install -fi - cd $IROOT/ffead-cpp-src/ -rm -rf CMakeCache.txt CMakeFiles -rm -rf web/te-benchmark-um web/te-benchmark-um-mgr web/te-benchmark-um-pq-async - -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-mgr)||g' CMakeLists.txt -sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq-async)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um/libte_benchmark_um${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-mgr/libte_benchmark_um_mgr${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt -sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq-async/libte_benchmark_um_pq_async${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt - -sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq/config/sdorm.xml rm -rf build mkdir build cd build CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-generate" cmake -DSRV_EMB=on -DMOD_REDIS=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -#sed -i 's|cmake .|cmake -DCMAKE_EXE_LINKER_FLAGS="-fprofile-dir=/tmp/profile-data -fprofile-generate" -DCMAKE_CXX_FLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-generate" .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +#sed -i 's|cmake |cmake -DCMAKE_EXE_LINKER_FLAGS="-fprofile-dir=/tmp/profile-data -fprofile-generate" -DCMAKE_CXX_FLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-generate" |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh ./install_ffead-cpp-sql-raw-profiled.sh rm -rf $IROOT/ffead-cpp-sql-raw @@ -47,19 +19,19 @@ cd $IROOT/ffead-cpp-src rm -rf build mkdir build cd build -CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-use=/tmp/profile-data -fprofile-correction" cmake -DSRV_EMB=on -DMOD_MEMCACHED=on -DMOD_REDIS=on -DMOD_SDORM_MONGO=on .. -make install && mv $IROOT/ffead-cpp-src/ffead-cpp-5.0-bin $IROOT/ffead-cpp-sql-raw +CXXFLAGS="-march=native -flto -fprofile-dir=/tmp/profile-data -fprofile-use=/tmp/profile-data -fprofile-correction" cmake -DSRV_EMB=on -DMOD_REDIS=on .. +make install && mv $IROOT/ffead-cpp-src/ffead-cpp-6.0-bin $IROOT/ffead-cpp-sql-raw #Start postgresql service postgresql stop #For profiling/benchmarking cd $IROOT/ -#sed -i 's|cmake .|CXXFLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-use -fprofile-correction" cmake .|g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh +#sed -i 's|cmake |CXXFLAGS="-march=native -fprofile-dir=/tmp/profile-data -fprofile-use -fprofile-correction" cmake |g' $IROOT/ffead-cpp-sql-raw/resources/rundyn-automake.sh ./install_ffead-cpp-sql-raw-profiled.sh -mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-5.0-sql +mv $IROOT/ffead-cpp-sql-raw $IROOT/ffead-cpp-6.0-sql -sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-5.0-sql/web/te-benchmark-um-pq/config/sdorm.xml +sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq/config/sdorm.xml apt remove -yqq postgresql-13 postgresql-contrib-13 gnupg lsb-release apt autoremove -yqq diff --git a/frameworks/C++/ffead-cpp/sql-profiled-util.sh b/frameworks/C++/ffead-cpp/sql-profiled-util.sh new file mode 100644 index 00000000000..e8422fbe24f --- /dev/null +++ b/frameworks/C++/ffead-cpp/sql-profiled-util.sh @@ -0,0 +1,54 @@ +mkdir /tmp/profile-data + +rm -rf $IROOT/ffead-cpp-6.0-sql + +if [ "$1" = "batch" ] +then + apt remove -yqq libpq-dev + apt autoremove -yqq + rm -f /usr/lib/x86_64-linux-gnu/libpq.* + apt update && apt install -y bison flex libreadline-dev + cd /tmp + #wget -q https://github.com/an-tao/postgres/archive/batch_mode_ubuntu.tar.gz + #tar -xzf batch_mode_ubuntu.tar.gz + #cd postgres-batch_mode_ubuntu + #./configure --prefix=/usr CFLAGS='-O2 -pipe -march=native' + #make && make install + wget -nv https://github.com/postgres/postgres/archive/b787d4ce6d910080065025bcd5f968544997271f.zip + unzip -q b787d4ce6d910080065025bcd5f968544997271f.zip + cd postgres-b787d4ce6d910080065025bcd5f968544997271f + wget -nv https://www.postgresql.org/message-id/attachment/115223/v22-0001-libpq-batch.patch + git apply ./v22-0001-libpq-batch.patch + ./configure --prefix=/usr CFLAGS='-O3 -march=native -flto' + cd src/interfaces/libpq + make all install -j4 + cp ../../../src/include/postgres_ext.h ../../../src/include/pg_config_ext.h libpq-fe.h /usr/include +fi + +if [ "$2" = "clang" ] +then + apt update -yqq && apt install -yqq clang +fi + +cd $IROOT/ffead-cpp-src/ +rm -rf $IROOT/ffead-cpp-sql-raw +rm -rf CMakeCache.txt CMakeFiles +rm -rf web/te-benchmark-um web/te-benchmark-um-mgr + +sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um)||g' CMakeLists.txt +sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-mgr)||g' CMakeLists.txt +sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um/libte-benchmark-um${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt +sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-mgr/libte-benchmark-um-mgr${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt + +if [ "$3" = "async" ] +then + sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq)||g' CMakeLists.txt + sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq/libte-benchmark-um-pq${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt + sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq-async/config/sdorm.xml + rm -rf web/te-benchmark-um-pq +else + sed -i 's|add_subdirectory(${PROJECT_SOURCE_DIR}/web/te-benchmark-um-pq-async)||g' CMakeLists.txt + sed -i 's|install(FILES ${PROJECT_BINARY_DIR}/web/te-benchmark-um-pq-async/libte-benchmark-um-pq-async${LIB_EXT} DESTINATION ${PROJECT_NAME}-bin/lib)||g' CMakeLists.txt + sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-src/web/te-benchmark-um-pq/config/sdorm.xml + rm -rf web/te-benchmark-um-pq-async +fi diff --git a/frameworks/C++/ffead-cpp/sql-v-picov-profiled-install.sh b/frameworks/C++/ffead-cpp/sql-v-picov-profiled-install.sh new file mode 100644 index 00000000000..f50a431ed52 --- /dev/null +++ b/frameworks/C++/ffead-cpp/sql-v-picov-profiled-install.sh @@ -0,0 +1,30 @@ +export FFEAD_CPP_PATH=${IROOT}/ffead-cpp-6.0-sql +export LD_LIBRARY_PATH=${IROOT}/:${IROOT}/lib:${FFEAD_CPP_PATH}/lib:/usr/local/lib:$LD_LIBRARY_PATH + +sed -i 's|tfb-database|localhost|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq/config/sdorm.xml + +cd $IROOT/lang-server-backends/v/pico.v +v -prod -cflags '-std=gnu11 -Wall -O3 -march=native -mtune=native -no-pie -flto -fprofile-dir=/tmp/profile-data -fprofile-generate -lgcov --coverage' main.v + +#Start postgresql +service postgresql start +#For profiling/benchmarking + +cd $IROOT/ +./install_ffead-cpp-sql-raw-v-picov-profiled.sh + +cd $IROOT/lang-server-backends/v/pico.v +v -prod -cflags '-std=gnu11 -Wall -O3 -march=native -mtune=native -no-pie -flto -fprofile-dir=/tmp/profile-data -fprofile-use=/tmp/profile-data -fprofile-correction -lgcov --coverage' main.v + +cd $IROOT/ +./install_ffead-cpp-sql-raw-v-picov-profiled.sh + +mv $IROOT/lang-server-backends/v/pico.v/main $IROOT/ + +sed -i 's|localhost|tfb-database|g' $IROOT/ffead-cpp-6.0-sql/web/te-benchmark-um-pq/config/sdorm.xml + +apt remove -yqq postgresql-13 postgresql-contrib-13 gnupg lsb-release +apt autoremove -yqq +rm -rf /ssd/postgresql +rm -rf /tmp/postgresql +rm -rf /tmp/wrk /usr/local/bin/wrk diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/CMakeLists.txt b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/CMakeLists.txt index 2b4cc086955..b7d99d0455a 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/CMakeLists.txt +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/CMakeLists.txt @@ -5,6 +5,9 @@ file(GLOB sources ) include_directories("${CMAKE_SOURCE_DIR}/web/te-benchmark-um-mgr/include") -add_library(te_benchmark_um_mgr SHARED ${sources}) -set_property(TARGET te_benchmark_um_mgr PROPERTY POSITION_INDEPENDENT_CODE ON) -target_link_libraries(te_benchmark_um_mgr ffead-modules ffead-framework ${HAVE_PQLIB} ${HAVE_CURLLIB} ${HAVE_SSLLIB} ${HAVE_MEMCACHEDLIB} ${HAVE_ODBCLIB} ${HAVE_MONGOCLIB} ${HAVE_BSONLIB} ${HAVE_ZLIB} ${HAVE_CRYPTOLIB}) +if(BUILD_STATIC_LIBS OR EMSCRIPTEN) + add_library(te-benchmark-um-mgr STATIC ${sources}) +else() + add_library(te-benchmark-um-mgr ${sources}) +endif() +target_link_libraries(te-benchmark-um-mgr ffead-modules ffead-framework ${HAVE_PQLIB} ${HAVE_CURLLIB} ${HAVE_SSLLIB} ${HAVE_MEMCACHEDLIB} ${HAVE_ODBCLIB} ${HAVE_MONGOCLIB} ${HAVE_BSONLIB} ${HAVE_ZLIB} ${HAVE_CRYPTOLIB}) diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/application.xml b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/application.xml index 05171dc732b..852ff9a44ba 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/application.xml +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/application.xml @@ -1,4 +1,4 @@ - + * GET, POST, HEAD, PUT, DELETE diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/cache.xml b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/cache.xml deleted file mode 100644 index a06b17de6de..00000000000 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/config/cache.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - sumeet - sumeet - - - TeBkUmMgrRouter.updateCache - Memory-Cached - memory - - \ No newline at end of file diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/include/TeBkUmMgr.h b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/include/TeBkUmMgr.h index 61b2487e1be..3f3be8cd461 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/include/TeBkUmMgr.h +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/include/TeBkUmMgr.h @@ -43,8 +43,6 @@ #include "yuarel.h" #include "Router.h" -typedef void (*TeBkUmMgrTemplatePtr) (Context*, std::string&); - class TeBkUmMgrWorld { int id; int randomNumber; @@ -83,8 +81,11 @@ class TeBkUmMgrRouter : public Router { static std::string WORLD; static std::string FORTUNE; - static std::string APP_NAME; - static std::string TPE_FN_NAME; + static TemplatePtr tmplFunc; + + static Ser m_ser; + static Ser w_ser; + static SerCont wcont_ser; bool strToNum(const char* str, int len, int& ret); @@ -111,7 +112,7 @@ class TeBkUmMgrRouter : public Router { TeBkUmMgrRouter(); virtual ~TeBkUmMgrRouter(); void updateCache(); - bool route(HttpRequest* req, HttpResponse* res, void* dlib, void* ddlib, SocketInterface* sif); + bool route(HttpRequest* req, HttpResponse* res, SocketInterface* sif); }; #endif /* WEB_TE_BENCHMARK_UM_INCLUDE_TeBkUmMgr_H_ */ diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/meson.build b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/meson.build new file mode 100644 index 00000000000..7199d7e3621 --- /dev/null +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/meson.build @@ -0,0 +1,15 @@ + +module_includes = ['/usr/local/include','../../src/modules/common','../../src/modules/cache','../../src/modules/cache/memory','../../src/modules/cache/redis', + '../../src/modules/cache/memcached','../../src/modules/client-util','../../src/modules/http','../../src/modules/http/http11','../../src/modules/http/http20', + '../../src/modules/ioc','../../src/modules/jobs','../../src/modules/reflection','../../src/modules/sdorm','../../src/modules/sdorm/sql','../../src/modules/sdorm/sql/libpq', + '../../src/modules/client-util/ssl','../../src/modules/sdorm/mongo','../../src/modules/sdorm/mongo/raw','../../src/modules/search','../../src/modules/serialization', + '../../src/modules/serialization/xml','../../src/modules/serialization/json','../../src/modules/server-util','../../src/modules/ssl','../../src/modules/threads', + '../../src/framework','include'] +module_includes += global_includes +module_libs = [global_libs, libbson, libmongoc] + +c = run_command(meson_grabber, 'src/') +module_sources = c.stdout().strip().split('\n') + +shared_library('te-benchmark-um-mgr', module_sources, include_directories: module_includes, dependencies: module_libs, link_with: [libffeadmodules, libffeadframework], + install: true, install_dir: bin_dir+'/lib') \ No newline at end of file diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/TeBkUmMgr.cpp b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/TeBkUmMgr.cpp index 55a5d7d70eb..24424822515 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/TeBkUmMgr.cpp +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/TeBkUmMgr.cpp @@ -214,6 +214,7 @@ void TeBkUmMgrRouter::updateCache() { cchi->setRaw(CastUtil::fromNumber(w.getId()), str); } CacheManager::cleanImpl(cchi); + CacheManager::triggerAppInitCompletion(); } catch(const std::exception& e) { CacheManager::cleanImpl(cchi); throw e; @@ -332,106 +333,60 @@ bool TeBkUmMgrRouter::strToNum(const char* str, int len, int& ret) { return true; } -bool TeBkUmMgrRouter::route(HttpRequest* req, HttpResponse* res, void* dlib, void* ddlib, SocketInterface* sif) { - //Timer t; - //t.start(); +bool TeBkUmMgrRouter::route(HttpRequest* req, HttpResponse* res, SocketInterface* sif) { std::string_view path = req->getPath(); if(StringUtil::endsWith(path, "/plaintext")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); res->setContent(HELLO_WORLD); res->setContentType(ContentTypes::CONTENT_TYPE_TEXT_PLAIN); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else if(StringUtil::endsWith(path, "/json")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); TeBkUmMgrMessage msg; msg.setMessage(HELLO_WORLD); - JSONSerialize::serializeUnknown(&msg, 0, "TeBkUmMgrMessage", res->getContentP()); + JSONSerialize::serializeObject(&msg, m_ser, res->getContentP()); res->setContentType(ContentTypes::CONTENT_TYPE_APPLICATION_JSON); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else if(StringUtil::endsWith(path, "/db")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); TeBkUmMgrWorld msg; db(msg); - //t.end(); - //CommonUtils::tsContExec += t.timerNanoSeconds(); - //t.start(); - JSONSerialize::serializeUnknown(&msg, 0, "TeBkUmMgrWorld", res->getContentP()); + JSONSerialize::serializeObject(&msg, w_ser, res->getContentP()); res->setContentType(ContentTypes::CONTENT_TYPE_APPLICATION_JSON); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else if(StringUtil::endsWith(path, "/queries")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); struct yuarel_param params[1]; yuarel_parse_query((char*)req->getQueryStr().data(), req->getQueryStr().size(), params, 1); std::vector msg; queries(params[0].val, params[0].val_len, msg); - //t.end(); - //CommonUtils::tsContExec += t.timerNanoSeconds(); - //t.start(); - JSONSerialize::serializeUnknown(&msg, 100, "std::vector", res->getContentP()); + JSONSerialize::serializeObjectCont(&msg, wcont_ser, "vector", res->getContentP()); res->setContentType(ContentTypes::CONTENT_TYPE_APPLICATION_JSON); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else if(StringUtil::endsWith(path, "/fortunes")) { Context ctx; getContext(req, &ctx); - void* mkr = dlsym(ddlib, TPE_FN_NAME.c_str()); - if(mkr!=NULL) + if(tmplFunc!=NULL) { - TeBkUmMgrTemplatePtr f = (TeBkUmMgrTemplatePtr)mkr; - std::string msg; - f(&ctx, msg); - res->setContent(msg); + fcpstream str; + tmplFunc(&ctx, str); + res->setContent(str.str()); res->setContentType(ContentTypes::CONTENT_TYPE_TEXT_SHTML); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); } } else if(StringUtil::endsWith(path, "/updates")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); struct yuarel_param params[1]; yuarel_parse_query((char*)req->getQueryStr().data(), req->getQueryStr().size(), params, 1); std::vector msg; updates(params[0].val, params[0].val_len, msg); - //t.end(); - //CommonUtils::tsContExec += t.timerNanoSeconds(); - //t.start(); - JSONSerialize::serializeUnknown(&msg, 100, "std::vector", res->getContentP()); + JSONSerialize::serializeObjectCont(&msg, wcont_ser, "vector", res->getContentP()); res->setContentType(ContentTypes::CONTENT_TYPE_APPLICATION_JSON); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else if(StringUtil::endsWith(path, "/cached-worlds")) { - //t.end(); - //CommonUtils::tsContRstLkp += t.timerNanoSeconds(); - //t.start(); struct yuarel_param params[1]; yuarel_parse_query((char*)req->getQueryStr().data(), req->getQueryStr().size(), params, 1); std::vector msg; cachedWorlds(params[0].val, params[0].val_len, msg); - //t.end(); - //CommonUtils::tsContExec += t.timerNanoSeconds(); - //t.start(); - JSONSerialize::serializeUnknown(&msg, 100, "std::vector", res->getContentP()); + JSONSerialize::serializeObjectCont(&msg, wcont_ser, "vector", res->getContentP()); res->setContentType(ContentTypes::CONTENT_TYPE_APPLICATION_JSON); res->setHTTPResponseStatus(HTTPResponseStatus::Ok); - //t.end(); - //CommonUtils::tsContRstSer += t.timerNanoSeconds(); } else { res->setHTTPResponseStatus(HTTPResponseStatus::NotFound); } @@ -439,17 +394,19 @@ bool TeBkUmMgrRouter::route(HttpRequest* req, HttpResponse* res, void* dlib, voi return true; } -std::string TeBkUmMgrRouter::APP_NAME = ""; -std::string TeBkUmMgrRouter::TPE_FN_NAME = ""; +TemplatePtr TeBkUmMgrRouter::tmplFunc; +Ser TeBkUmMgrRouter::m_ser; +Ser TeBkUmMgrRouter::w_ser; +SerCont TeBkUmMgrRouter::wcont_ser; TeBkUmMgrRouter::TeBkUmMgrRouter() { #ifdef INC_SDORM_MONGO sqli = NULL; #endif - if(APP_NAME=="") { - APP_NAME = CommonUtils::normalizeAppName("te-benchmark-um-mgr"); - TPE_FN_NAME = CommonUtils::getTpeFnName("tpe/fortunes.tpe", "te-benchmark-um-mgr"); - } + tmplFunc = TemplateUtil::getTemplateFunc("te-benchmark-um-mgr", "tpe/fortunes.tpe"); + m_ser = Serializer::getSerFuncForObject("te-benchmark-um-mgr", "TeBkUmMgrMessage"); + w_ser = Serializer::getSerFuncForObject("te-benchmark-um-mgr", "TeBkUmMgrWorld"); + wcont_ser = Serializer::getSerFuncForObjectCont("te-benchmark-um-mgr", "TeBkUmMgrWorld", "std::vector"); } TeBkUmMgrRouter::~TeBkUmMgrRouter() { diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/autotools/Makefile.am b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/autotools/Makefile.am index 6e5fd5dd985..bef97f351c6 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/autotools/Makefile.am +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/src/autotools/Makefile.am @@ -8,7 +8,7 @@ distdir=${PACKAGE_NAME}-${PACKAGE_VERSION}-src fprefix=../../../../${packageIdentifier} prefix=${abs_builddir} -lib_LTLIBRARIES = libte_benchmark_um_mgr.la +lib_LTLIBRARIES = libte-benchmark-um-mgr.la libte_benchmark_um_mgr_la_SOURCES = ../TeBkUmMgr.cpp libte_benchmark_um_mgr_la_LDFLAGS = -no-undefined diff --git a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/tpe/fortunes.tpe b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/tpe/fortunes.tpe index 6bd604ada81..437458dd3f6 100644 --- a/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/tpe/fortunes.tpe +++ b/frameworks/C++/ffead-cpp/te-benchmark-um-mgr/tpe/fortunes.tpe @@ -6,7 +6,7 @@ idmessage #for(int i=0;i<(int)fortunes.size();i++)# -$_S{fortunes.at(i).getId()}${fortunes.at(i).getMessage()} +${fortunes.at(i).getId()}${fortunes.at(i).getMessage()} #rof#