Skip to content

Storage backends: API and framework #856

Closed

Description

@jrosdahl

Design and implement an API and framework for simple key-value storage backends. This includes configuration parsing (see #855) and new statistics counters. Only needs to support one secondary backend for now.

Activity

  1. added
    issue: task
    on Jun 6, 2021
  2. changed the title [-]Storage backend: API and framework[/-] [+]Storage backends: API and framework[/+] on Jun 6, 2021
  3. jrosdahl commented on Jun 27, 2021

    @jrosdahl
    MemberAuthor
  4. added this to the 4.4 milestone on Jun 27, 2021
  5. Bezalja commented on Jul 6, 2021

    @Bezalja

    I did not find any hints on this topic:
    Will the secondary storage propagate into the primary and/or will the primary eventually drop its content into the secondary?

  6. jrosdahl commented on Jul 7, 2021

    @jrosdahl
    MemberAuthor

    Will the secondary storage propagate into the primary and/or will the primary eventually drop its content into the secondary?

    My current plan looks something like this:

    Primary storage hit/miss Secondary storage hit/miss What happens
    miss miss Compile, write to primary[1], write to secondary[2]
    miss hit Read from secondary, write to primary[1][3]
    hit - Read from primary, don't write to secondary[4]
    • [1] Unless primary storage is read-only (future config option: read_only_primary/CCACHE_READONLY_PRIMARY).
    • [2] Unless secondary storage is read-only (|read-only or |read-only=true appended to the storage URL).
    • [3] Unless secondary storage is marked to not share results. The use case for this is if you have a secondary storage that is so fast that it's of no use to also populate the primary storage. I haven't come up with a good name for this yet, though. The best I got so far is |share-hits=false appended to the storage URL. Other suggestions are welcome.
    • [4] Unless primary storage is set to share its hits (future config option: share_hits/CCACHE_SHARE_HITS).

    Does this sound reasonable?

  7. afbjorklund commented on Jul 8, 2021

    @afbjorklund
    Contributor

    I haven't come up with a good name for this yet, though. The best I got so far is |share-hits=false appended to the storage URL. Other suggestions are welcome.

    The old name for this feature was memcached_only, which doesn't really help with picking the new name. ("share-hits" is ok)

  8. self-assigned this
    on Jul 14, 2021
  9. Bezalja commented on Jul 20, 2021

    @Bezalja

    That's amazing! Thank you so much.
    'share_hits' is a very reasonable name (an alternative might be populate=[primary|secondary|other|both|none])

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

Metadata

Metadata

Assignees

Labels

issue: task

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions