Git Product home page Git Product logo

cloud-housekeeping's Introduction

cloud-housekeeping

Housekeeping help us maintaining the Athena tables and S3 data created by the Campaign execution in AWS Cloud.

Overview of project

Housekeeping help us maintaining the Athena tables and S3 data created by the Campaign execution in AWS Cloud.

Features:

  • Athena Tables/Views Deletion (including the deletion of S3 data)*

Release History

  • 0.1.0
    • Beta release

Local Setup

In order to build this module the following command has to be used:

  • Fork the project in bitbucket using the Bitbucket UI
GIT URL: https://github.com/pmanchu5/cloud-housekeeping.git
  • Clone the repository in your local your git after fork
ssh://[email protected]/pmanchu5/cloud-housekeeping.git

High Level Design

img.png

*DynamoDB Table : ASCEND_HOUSEKEEPING
*DataModel:
*Column	        Type	Description	                        Sample Value
*operation_id	String	Identifier of operation	            "0b8a406f-98fa-11ec-9888-97106dd0f18a"
*operation_type	String	Type of operation	                "DELETE"  *Only one currently supported
*run_instance	String                                      "20220204112104"
*status	        String                                      "REQUESTED", "PROCESSING", "COMPLETED", "FAILED"
*table_name	    String                                      "a233140_cc1fcmui2f8_20220204112104_output"
*request_ts	    String	Date on which the operation must be performed	"2022-04-13 14:47:59.029"
*complete_ts	    String	When operation got completed	    "2022-04-13 15:00:59.029"
*data_location	String	Table data location in S3	        "s3://bucket-name/ClientName/AccountNo/ProgramName/RUNID/table/20220204112104_1643752789355_1643756134126_OUTPUT"
*requested_on	String	When the row got inserted in the Dynamo	"2022-03-01 00:53:44.030"
*table_type	    String	Identifies the type of artifact	    "TABLE","VIEW"
*job_database	String                                      "jobsdaily_test", "jobsdaily_uat","jobsdaily"
*error_msg	    String	Error message in case of failure
*retry_cnt	    Number	Counter of retries after failures	1
*start_ts	    String	When the operation started to be processed  "2022-04-13 14:50:00.000"

#### Flow
*JAVA application sends the Housekeeping entries using REST API, orchestration lambda injects the REST API calls and puts the HouseKeeping metadata entries in Dynamo DB.
*gvsu_housekeeping_compute is invoked every 60 seconds and checks the Dynamo DB Tables if there are any items available for Housekeeping.
*gvsu_housekeeping_delete is used called from gvsu_housekeeping_compute to proceed to perform the Housekeeping of S3 and Athena Tables purging.

## Authors
* **Purushothama, Manchu**  [[email protected]]

cloud-housekeeping's People

Contributors

pmanchu5 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.