Skip to content

[FEATURE]Show IP2Geo datasource create/update progress percentage #445

Open

Description

@heemin32

Is your feature request related to a problem?
Show IP2Geo datasource create/update progress percentage

What solution would you like?
When user call GET API of IP2Geo datasource, it shows how much percentage of the update are done

What alternatives have you considered?
Not showing create/update progress information

Do you have any additional context?

Activity

  1. alankar-asthana commented on Sep 16, 2023

    @alankar-asthana

    Hello @heemin32
    From where to get started?

    Thanks

  2. heemin32 commented on Sep 17, 2023

    @heemin32
    CollaboratorAuthor

    Hi @alankar-asthana,

    The creation/update is happening in https://github.com/opensearch-project/geospatial/blob/main/src/main/java/org/opensearch/geospatial/ip2geo/jobscheduler/DatasourceUpdateService.java#L63

    If we can get the size of file in advance, we can calculate how much of data is processed and store the completed percentage in memory.

    In GET API, we can make a call to the node who is creating or updating datasource to get the percentage value and return it in response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions