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

[FEATURE] Create a state index for workflows. #74

Closed
amitgalitz opened this issue Oct 6, 2023 · 0 comments
Closed

[FEATURE] Create a state index for workflows. #74

amitgalitz opened this issue Oct 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@amitgalitz
Copy link
Member

amitgalitz commented Oct 6, 2023

Is your feature request related to a problem?
Create a state index along with the needed operations that need to be done on the index while provisioning is ongoing. The index will store both the workflow state and other important fields such as UI_metadata and user info.
What solution would you like?

The mapping for the state index will look like this:

{
  "dynamic": false,
  "_meta": {
    "schema_version": 1
  },
  "properties": {
    "schema_version": {
      "type": "integer"
    },
    "workflow_id": {
      "type": "keyword"
    },
    "error": {
      "type": "text"
    }
    "state": {
      "type": "keyword"
    },
    "provisioning_progress": {
      "type": "keyword"
    },
    "provision_start_time": {
      "type": "date",
      "format": "strict_date_time||epoch_millis"
    },
    "provision_end_time": {
      "type": "date",
      "format": "strict_date_time||epoch_millis"
    },
    "user": {
      "type": "nested",
      "properties": {
        "name": {
          "type": "text",
          "fields": {
            "keyword": {
              "type": "keyword",
              "ignore_above": 256
            }
          }
        },
        "backend_roles": {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword"
            }
          }
        },
        "roles": {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword"
            }
          }
        },
        "custom_attribute_names": {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword"
            }
          }
        }
      }
    },
   "ui_metadata": {
      "type": "object",
      "enabled": false
    }
}

Do you have any additional context?
We will continue adding new fields to the mapping here as we continue, this will be done over time.

We will also add additional metrics to this index over time like:


{
 "ingest calls": 30,
 "search_calls": 3000,
 "search_failure_count": 0,
 "ingest_failure_count": 0,
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants