Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read Queue Data from ZK rather than Ingest #60

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cognito-lambda-nonvpc/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bundle/
vendor/
README.md
Dockerfile
Dockerfile
Gemfile.lock
6 changes: 4 additions & 2 deletions cognito-lambda-nonvpc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
# This image is based on an architecture that matches the Lambda Ruby runtime
# docker build -t ${ECR_REGISTRY}/cognito-lambda-nonvpc .

FROM public.ecr.aws/lambda/ruby:3
FROM public.ecr.aws/lambda/ruby:3.2

RUN yum -y update && yum -y upgrade

RUN yum -y update
RUN yum -y install gcc make git

RUN gem update bundler

# Start with a Gemfile containing only MySQL
Expand Down
18 changes: 9 additions & 9 deletions cognito-lambda-nonvpc/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ GEM
specs:
ast (2.4.2)
aws-eventstream (1.3.0)
aws-partitions (1.881.0)
aws-sdk-cognitoidentityprovider (1.85.0)
aws-sdk-core (~> 3, >= 3.188.0)
aws-partitions (1.895.0)
aws-sdk-cognitoidentityprovider (1.87.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-core (3.190.3)
aws-sdk-core (3.191.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
Expand All @@ -18,26 +18,26 @@ GEM
json (2.7.1)
language_server-protocol (3.17.0.3)
parallel (1.24.0)
parser (3.3.0.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.60.1)
rubocop (1.62.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
unicode-display_width (2.5.0)

Expand Down
13 changes: 0 additions & 13 deletions merrit-billing/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,6 @@ CREATE TABLE ingests_completed (
INDEX ingest_date(ingest_date)
);

/*
DROP TABLE IF EXISTS node_counts;
*/
CREATE TABLE node_counts (
inv_node_id int,
number int,
object_count bigint,
object_count_primary bigint,
object_count_secondary bigint,
file_count bigint,
billable_size bigint,
index node_id(inv_node_id)
);

/*
DROP TABLE IF EXISTS daily_node_counts;
Expand Down
3 changes: 2 additions & 1 deletion mysql-ruby-lambda/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bundle/
vendor/
README.md
Dockerfile
Dockerfile
Gemfile.lock
4 changes: 2 additions & 2 deletions mysql-ruby-lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# This image is based on an architecture that matches the Lambda Ruby runtime
# docker build -t ${ECR_REGISTRY}/mysql-ruby-lambda .

FROM public.ecr.aws/lambda/ruby:3
FROM public.ecr.aws/lambda/ruby:3.2

RUN yum -y update
RUN yum -y update && yum -y upgrade

# Install an os-specific MySQL installation.
# gcc and make are required to build mysql.
Expand Down
20 changes: 10 additions & 10 deletions mysql-ruby-lambda/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,43 @@ GEM
specs:
ast (2.4.2)
aws-eventstream (1.3.0)
aws-partitions (1.881.0)
aws-sdk-core (3.190.3)
aws-partitions (1.895.0)
aws-sdk-core (3.191.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-ssm (1.162.0)
aws-sdk-core (~> 3, >= 3.188.0)
aws-sdk-ssm (1.165.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
jmespath (1.6.2)
json (2.7.1)
language_server-protocol (3.17.0.3)
logger (1.6.0)
mysql2 (0.5.5)
mysql2 (0.5.6)
parallel (1.24.0)
parser (3.3.0.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.60.1)
rubocop (1.62.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
unicode-display_width (2.5.0)
yaml (0.2.1)
Expand Down
3 changes: 2 additions & 1 deletion simulate-lambda-alb/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.bundle/
vendor/
README.md
Dockerfile
Dockerfile
Gemfile.lock
2 changes: 1 addition & 1 deletion simulate-lambda-alb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

FROM ruby:3

RUN apt-get update -y && apt-get -y upgrade
RUN apt-get -y update && apt-get -y upgrade

RUN gem install bundler

Expand Down
25 changes: 14 additions & 11 deletions simulate-lambda-alb/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,39 @@ GEM
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
parallel (1.24.0)
parser (3.3.0.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rack (2.2.8)
rack-protection (3.2.0)
rack (3.0.9.1)
rack-protection (4.0.0)
base64 (>= 0.1.0)
rack (~> 2.2, >= 2.2.4)
rack (>= 3.0.0, < 4)
rack-session (2.0.0)
rack (>= 3.0.0)
rainbow (3.1.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.60.1)
rubocop (1.62.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sinatra (3.2.0)
sinatra (4.0.0)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.2.0)
rack (>= 3.0.0, < 4)
rack-protection (= 4.0.0)
rack-session (>= 2.0.0, < 3)
tilt (~> 2.0)
tilt (2.3.0)
unicode-display_width (2.5.0)
Expand Down
3 changes: 2 additions & 1 deletion src-admintool/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Dockerfile
vendor/
vendor/
Gemfile.lock
28 changes: 14 additions & 14 deletions src-admintool/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,50 @@ GEM
specs:
ast (2.4.2)
aws-eventstream (1.3.0)
aws-partitions (1.881.0)
aws-sdk-core (3.190.3)
aws-partitions (1.895.0)
aws-sdk-core (3.191.3)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.76.0)
aws-sdk-core (~> 3, >= 3.188.0)
aws-sdk-kms (1.77.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.142.0)
aws-sdk-core (~> 3, >= 3.189.0)
aws-sdk-s3 (1.143.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
aws-sdk-ssm (1.162.0)
aws-sdk-core (~> 3, >= 3.188.0)
aws-sdk-ssm (1.165.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sigv4 (1.8.0)
aws-eventstream (~> 1, >= 1.0.2)
jmespath (1.6.2)
json (2.7.1)
language_server-protocol (3.17.0.3)
logger (1.6.0)
mysql2 (0.5.5)
mysql2 (0.5.6)
parallel (1.24.0)
parser (3.3.0.4)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
racc (1.7.3)
rainbow (3.1.1)
regexp_parser (2.9.0)
rexml (3.2.6)
rubocop (1.60.1)
rubocop (1.62.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-ast (1.31.1)
parser (>= 3.3.0.4)
ruby-progressbar (1.13.0)
unicode-display_width (2.5.0)
yaml (0.2.1)
Expand Down
7 changes: 7 additions & 0 deletions src-admintool/config/reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ producer_files:
category: files
description: |
Producer Files for a Mnemonic.
prune_candidates:
link-title: Prune Candidate Files for a Mnemonic
breadcrumb: bp_content_projects
class: PruneCandidateFilesQuery
category: files
description: |
Prune Candidate Files for a Mnemonic.
daily-build-s3-list:
link-title: Daily Build Links
breadcrumb: bp_content_projects
Expand Down
15 changes: 13 additions & 2 deletions src-admintool/queries/objectid_files_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ def get_sql
select
o.ark,
v.number,
(
select max(vv.number)
from inv.inv_files ff
inner join inv.inv_versions vv
on ff.inv_version_id = vv.id
where
ff.inv_object_id = o.id
and exists (
select 1 where ff.pathname=f.pathname
)
) as maxv,
f.source,
binary f.pathname,
f.full_size,
Expand Down Expand Up @@ -69,11 +80,11 @@ def get_params
end

def get_headers(_results)
['Ark', 'Version', 'Source', 'Path', 'File Size', 'Created', 'Nodes', 'Unverified']
['Ark', 'Version', 'MaxVer', 'Source', 'Path', 'File Size', 'Created', 'Nodes', 'Unverified']
end

def get_types(_results)
['ark', '', '', 'name', 'bytes', 'datetime', '', '']
['ark', '', '', '', 'name', 'bytes', 'datetime', '', '']
end

def get_alternative_queries
Expand Down
Loading
Loading